
57
and D.
Syntax
:
int Close_Search(_DBMS* F_Search);
Example call
:
Close_Search(&F_Search);
Includes
:
#include “DBMS.h”
Description
:
When want to finish the file searching state, you can use this
function.
Returns
:
0: Close defeat.
1: Close success.
SearchField
Purpose
:
SearchField can search the appointed field that begin form the
appointed record and compare with importing string. If agreeing,
pass back to the first record.
Syntax
:
int SearchField(_DBMS* F_Search, char* field, int
search_fieldno, int recordno, int flag);
Example call
:
char str[8]=”abcdefg”;
int Record_Num;
Record_Num =SearchField(&fsearch, str,0,0,FORWARD);
Includes
:
#include “DBMS.h”
Several describe the argument as follows:
argument description
_DBMS* F_Search
The file’s searching structure that has
been initialized.
char* field
String data wanted to match.
int search_fieldno
Field wanted to search.
int recordno
Begin to search from which data.
Description
:
int flag
FORWARD => Search form forward to
backward
BACKWARD => Search form
backward to forward
As success of searching, the file index
will stay in successful record front.
When search defeat, the file index will
not be moved (not support
BACKWARD at present).
Returns
:
-1: Search defeat.
Other value: Match the record position of data
SearchField_GR
Purpose
:
SearchField_GR can search the appointed field that begin form the
Содержание 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 ...