Other Functions
Escape ( asc1, asc2, asc3, ... , -1)
Returns a string that is the sequence of ASCII numbers. The sequence is terminated by -1.
For example the Escape(13,10,-1) returns the ASCII character sequence 13, 10 (newline).
InsertInto ( tname, fname1, fval1, fname2, fval2, ...., ““)
This function inserts a record to the tname database table by providing pairs of field names and field values. The sequence stops by the first blank (““) field name. The value returned is the unique key value of the inserted record.
cmdexecute ( drive, command )
This function executes an entire series of commands given by the procedure cmdline. The value returned is the message returned by the system upon the execution of the command.
The “drive“ gives the active disk.
Another option is to be this a single line call to cmdexecute.
The command argument can be empty, given that a series of cmdline procedures give the entire body of commands for execution.
For examele:
call cmdline(“CD\“)
call cmdline(“CD C:\KOSMOS“)
msg = cmdexecute(“C:\“, “COPY KOSMOS.EXE KOSMOS3.EXE“)
call message(msg)