HelpPages
Home | Developer | Frames | Scripts | Command Reference
Command Reference
SCRIPTS - REFERENCE
CONSOLE COMMANDS
- ACCEPT. Undocumented.
- BOUNDS "'PROMPT1:':'TL':STORE_VAR0['PROMPT2:':'TL':STORE_VAR0...]]". Opens a data capture window. Each parameter consists of a prompt, which must be an alphanumeric expression, a descriptor of type and length as A10, N6, D8, etc (see screen field types), a variable where to save the input, and an optional variable with the default value of the field. The last two parameters should be compatible with the type, to avoid TYPEMISMATCH errors.
- COLOR. Undocumented.
- LOCATE ROW, COL. Position the cursor inside a window to the position indicated by the parameters.
- MENSJE TEXT$. Generates a text message.
- PRINT TEXT$. Output text to the current active window.
- READ. Makes the data capture of previous ACCEPT commands.
- WINMENU MENUOPTIONS$. The parameter must be a number of options separated by commas. The result of the menu remains on the variable _STAT.
- WINOPEN ROW,COL,WINTITLE$. Open a window at the position row, col, with WINTITLE$ as the title. If WINTITLE is the string 'PROGRESS', opens a progress bar, where ROW is the width of the bar and COL is the full extension of progress.
- WINCLOSE PROGRESS. Close the last open window. To close a progress bar to indicate the parameter 'PROGRESS'
- WINSELECT. Undocumented.
INPUT AND OUTPUT COMMANDS
- CONNECT. Undocumented.
- DEVICE DOCPARAMS0. Opens a pipe to output. Successive DLOCATE and DPRINT commands will be send to this device. See the introduction to documents to see the pipes available. See basic structures.
- DLOCATE ROW,COL. Allocates row and col in an open pipe.
- DPRINT TEXT$. Output text to an open pipe.
- ENDDEVICE. Close the output pipe.
- READ_FROM. Undocumented.
- REMOTE. Undocumented.
- REPORT DOCPRM$,DOCSET$. Generates a document. The parameters of this command are the same as for the parameter DOC$, basic screen (maintenance). See Basic Structures
- SHELL COMMANDLINE$. Executes an operating system command.
- SYSTEM COMMANDLINE$. Executes an operating system command.
- WAIT. Undocumented.
TRANSACTION COMMANDS
- EXPORT. Undocumented.
- IMPORT. Undocumented.
DATA ACCESS COMMANDS
- FILESELECT SELECT$. Allows to open and close files. The opening parameter is a string of comma separated subparameters consisting of the ID or file number, followed by a semicolon and the level of openness: 1 read only, 2 reading and writing. If the parameter is 'RESTORE' restores the file state before the last SELECT.
- KILL FILENAME$. Deletes a file from the disk.
- LOADSTRUCT 'AI'. Upload a file structure. The identifier must be the first two digits of the file structures. For example to load the file APDICC.DAT, the AI (App ID) is AP.
- RC_DELETE 0. Deletes the current record from the specified file, or from the default file.
- RC_INSERT 0. Insert the active record from the specified file, or from the default file.
- RC_SEEK. Undocumented.
- RC_WRITE 0. Save the active record from the specified file, or from the default file.
- FILESTRUCT FILENME$,FILESTRUCT$,INDEXSTRUCT$. Defines a temporary file structure. The first parameter is the name of the file. The second and third parameters correspond to structures described in the section of basic structures.
- FILESCAN SCANMODE$,CONDITION$,EVAL$. The struture SCANMODE is described in basic structures. In all cases are processed records matching CONDITION $, and the expression is applied $ EVAL. If the mode is EXPVAL is continuous, but if the mode is ACUM, after each execution of EVAL$, the process make a key search on the main file, and if not matched, it will be be inserted. If there is a match, EVAL is repeated and recorded.