Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

 


VAREXTRACT

 

    • requires parameters

    • number of parameters: 2 or 3

 

Usage: varextract ‘‘varname, pos’‘

 varextract ‘‘varname, pos, len’‘

 

    • will create a new variable or store a new value in an existing variable. The value stored in this variable will be extracted from a position on the current screen.

    • the pos parameter specifies the position on the screen in row/column format from where the value will be extracted.

    • The optional third parameter (len) specifies the number of characters to read at that position. If this value is omitted, the contents of the whole field will be stored in the variable, including any trailing blanks.

 

Note: - Parameters must be separated by commas

 - The varname/parameter(s) pair must be enclosed by the delimiter character if it contains any spaces

 


This command extracts data from the host terminal screen and places it a variable name. You can specify the area of the layout that you want to be copied into the variable. If the variable to receive the data does not exist, one will be created. If the command or parameters contain any spaces, enclose them in the delimiter character (currently ").

Usage

varextract "varname, 10/24"

This example will create a new variable or store a new value in an existing variable called ‘varname’. The value stored in this variable will be extracted from the position row 10, column 24 on the current screen.

varextract "varname, 10/24, 15"

The optional third parameter specifies the number of characters to read at that position. If this value is omitted, the contents of the whole field from the 10/24 position to the end of the screen will be stored in the variable, including any trailing blanks.




Next Command

 

  • No labels