PI1X Basic Programming Manual Ver. 1.10
85/156
Description
:
A%
is an integer variable to be assigned to the result.
A%
Meaning
0
Search defeat.
Other value Match the record position of data
Several key arguments as below:
DBMSID%
DBMS ID (1~10)
field%
Search wanted field.
key $
Match wanted string data.
※
This command only supports forward search.
Purpose
:
To search the designated field.
Syntax
:
A%=DBMS_FIND_RECORD_B(DBMSID% , field% , key$)
Example
:
A% = DBMS_FIND_RECORD_B(1, 2, " TEST3")
PRINT A%
Description
:
A%
is an integer variable to be assigned to the result.
A%
Meaning
0
Search defeat.
Other value Match the record position of data
Several key arguments as below:
DBMSID%
DBMS ID (1~10)
field%
Search wanted field.
key $
Match wanted string data.
※
This command only supports backward search.
Purpose
:
To obtain the figure of all records in the file.
Syntax
:
A%=DBMS_GET_COUNT(DBMSID%)
Example
:
A% = DBMS_GET_COUNT(1)
PRINT A%
Description
:
A%
is an integer variable to be assigned to the result.
DBMSID%
is an integer variable in the range from 1 to 10.
Purpose
:
To read the data of appointed field in the appointed record.
Syntax
:
A$=DBMS_GET_DATA$(DBMSID%, record%, field%)
Example
:
A$ = DBMS_GET_DATA$(1, 3, 3)
PRINT A$
Description
:
A$
is a string variable to be assigned to the result.
Several key arguments as below:
DBMSID%
DBMS ID (1~10)