05.01.2013 Views

Downloading - Weber Marking Systems

Downloading - Weber Marking Systems

Downloading - Weber Marking Systems

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

DB-INSERT<br />

DB-READ<br />

DB-READ-NEXT<br />

Adds a record to a database.<br />

Appendix C: Automated Print Control<br />

Syntax: DB- INSERT = $tblhandle, name1, $value1, name2, $value2,<br />

…<br />

Notes:<br />

The specified record will be added. All non-specified fields will be set<br />

to 0 or spaces.<br />

$ERRORCODE<br />

0 = Success<br />

1 = Failure<br />

Retrieves a record by key match.<br />

Syntax: DB-READ = $tblhandle, FieldName, $RTNFIELDVALUE,<br />

name1, $value1, name2, $value2, ...<br />

Notes:<br />

Searches the open table specified by $tblhandle to find the record<br />

that has value n on key field name n.<br />

$ERRORCODE<br />

0 = Success<br />

1 = Failure<br />

Returns the record pointed to by the ‘record pointer’.<br />

Syntax: DB-READ-NEXT=$HANDLE, COL1, $VAR1, [COL2,<br />

$VAR2, ..., COLN, $VARN], [START-AT, KEY1, VAL1, [KEY2,<br />

VAL2, ..., KEYN, VALN]]<br />

where;<br />

$HANDLE is the handle of an open file (must have been opened using<br />

the DB-OPEN command)<br />

COL1, COL2, ..., COLN are the column names of the fields to be<br />

returned<br />

$VAR1, $VAR2, ..., $VARN are variables that will contain the values<br />

of the columns when the read is completed<br />

Legitronic User Manual (v3.4) 206

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!