
61
Example call
:
char str_record[25]=”A1357924680,PT-10,3500”;
AppendRecord(&fsearch, str_record);
Includes
:
#include “DBMS.h”
Description
:
“AppendRecord” can increase a new record on the file end, the
data of record is introduced by char * record.
As increasing success, file index will be moved to the front of
increasing record.
Returns
:
-1: Write into defeat.
Other value: the quantity of the data.
WriteField
Purpose
:
Use this function can revise the designated record in the existed
file.
Syntax
:
int WriteField(_DBMS* F_Search, int recordno, int fieldno, char*
field);
Example call
:
Char str_field[10]=”123456789”;
WriteField(&fsearch,0,1, str_field);// Revise the second field of the
first data to “str_field”.
As revising success, file index will be moved to the front of the
record included revising field.
Includes
:
#include “DBMS.h”
Description
:
Using WriteField function can copy the field of appointed record.
If the file in disc D that you want to write, it will not allow to
write.
Returns
:
-1: Write into defeat.
Other value: Write into the amount of data.
WriteRecord
Purpose
:
Using this function can copy the existed record.
Syntax
:
int WriteRecord(_DBMS* F_Search, int recordno, char* record);
Example call
:
char str_record[20]=”A123456,PT-10,2330”;
WriteRecord(&fsearch,0, str_record);// Revise the first record to
char str_record
。
Includes
:
#include “DBMS.h”
Description
:
Use WriteRecord function can copy the existed record, but unable
to increase a new record.
As revising success, file index will be moved to revise the front of
revising record. If the file in disc D that you want to write, it will
not allow to write.
Returns
:
-1: Write into defeat.
Содержание PT-10
Страница 4: ...3 Keyboard Wedge 99 System 101 Power 102 Other 102 ...
Страница 13: ...12 6 Development Flow Chart ...
Страница 53: ...52 Returns No returns Notes ...