
53
7. DBMS Library
Table 7-1 DBMS Functions list
Function Description
DBMS
Ini_Search_C
Initialize the file search function in disk C.
Ini_Search_D
Initialize the file search function in disk D.
Close_Search
Close the file search function in Disk C and D.
SearchField
Search the designated field.
SearchField_GR
Search the designated field; After searching success,
acquiring the record which includes this field.
SearchField_GF
Search the designated field; After searching success,
acquiring the appointed field in including this field’s
record.
SeekRecord
Move the index of searching to the appointed record.
GetRecordNum
Obtain the figure of all records in the file.
DeleteRecord
Delete the appointed record in the file.
DeleteLastRecord
Delete the last record in the file.
AppendRecord
Increase one record on the file end.
WriteField
Revise the data of appoint field in appointed field record.
WriteRecord
Revise the data of the appointed record.
ReadField
Read the data of appointed field in the appointed record.
ReadRecord
Read data of the appointed record.
◆
DBMS Functions Description
Ini_Search_C
Purpose
:
Use “Ini_Search_C” can initiate the file search function in disk C.
Syntax
:
int Ini_Search_C(_TFILE* filehd,_DBMS* F_Search, unsigned
char *pusFielddlt, int record_type, int record_length, int
total_field_no, int total_record_no);
Example call
:
Example 1: Variable field length
_DBMS fsearsh;
_TFILE filepoint;
filepoint = _fopen(“c:\\data\\data.txt”,”a+”);
Ini_Search_C(filepoint,&fsearch,’,’,1,0,5,0);
Example 2: Regular field length
Содержание 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 ...