Argox PA-20 Basic Programming Manual User Manual
Page 84

PT-Basic Programming Manual Ver. 1.00
83/143
not including the symbol of line feed.
When N1%=1, this field can insert any
value.
N3%
This argument is the field‟s quantity of each
record (1~20).
Purpose: To initiate the advance file search in disk.
Syntax: A%=DBMS_INIT_SEARCHADV(FilePath$ , DBMSID% , S1$ ,
S2$, N1% ,N2% ,N3%,N4%)
Example: Result%=DBMS_INIT_SEARCHADV("C:\DATA\fix.DAT",1,"6,
8,8",”1,3”,2,0,22,3)
Description: This command can initialize a work of advance searching file. After
inserting every argument, you can to search files.
When using this command to initial a DBMS search, you have to
take care for:
1. This command cannot support Variable field length search.
2. When initial, we will make a index file in C disk, so it has to
take a few time.
3. The index filename will be similar to origin file. For example,
the lookup file name is “AAA.txt”, the index filename will be
“AAA.idx”. So, you have to check the duplicate filename to
avoid error for making index file.
4. You have to reserve some space for the function to make index
file in C disk.
A% is an integer variable to be assigned to the result.
A%
Meaning
0
DBMS initialization fail
1
DBMS initialization OK
5
Open file error
6
The DBMS ID is illegal.
7
DBMS ID already used.
8
The record type is illegal.
9
The field number exceeds 20.
-1
Argument S2$ or N1% is
error, please check it.
-2
Cannot make a IDX file,