PT-20 Programming Guide
64
Returns
:
When char * buffer = NULL, functions will pass the data size back. Read
defeat: Pass back - 1.
When char * buffer ≠ NULL. Read succeed: Pass 1 back; Read defeat:
Pass back - 1.
ReadRecord
Purpose
:
Use this function to read the data of appointed record.
Syntax
:
int ReadRecord(_DBMS* F_Search, int recordno, char* buffer);
Example call
:
char str_buffer[30];
ReadRecord (&fsearch,5,str_buffer);//Reading the data of sixth record,
and store to “str_buffer”.
Includes
:
#include “DBMS.h”
Description
:
int recordno : Read of record position
。
char* buffer : Read the storing space of field
。
Returns
:
When char * buffer = NULL, functions will pass materials size back. Read
defeat. Pass back - 1.
When char * buffer does not equal NULL. Read succeed. Passing 1 back;
Read defeat. Pass back - 1.