beautypg.com

Argox PA-20 Basic Programming Manual User Manual

Page 86

background image

PT-Basic Programming Manual Ver. 1.00

85/143

Example: data$ = "Happy, TEST, DBMS"

DBMS_APPEND_DATA(1,data$)

Description: DBMSID% is an integer variable in the range from 1 to 10.

data$ is a string variable indicating the data of record introduced.

DBMS_DEL_DATA

Purpose: To delete the appointed record in the file.

Syntax: DBMS_DEL_DATA(DBMSID%,record%)

Example: DBMS_DEL_DATA(1,2)

Description: DBMSID% is an integer variable in the range from 1 to 10.

Record% is an integer variable indicating the appointed record to

be deleted.

DBMS_EMPTY

Purpose: To remove all records in the file.

Syntax: DBMS_EMPTY(DBMSID%)

Example: DBMS_EMPTY(1)

Description: DBMSID% is an integer variable in the range from 1 to 10.

DBMS_FIND_RECORD

Purpose: To search the designated field.

Syntax: A%=DBMS_FIND_RECORD(DBMSID% , field% , key$)

Example: A% = DBMS_FIND_RECORD(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 forward search.

DBMS_FIND_RECORD_B

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.