/* $DOC$ $TEMPLATE$ Command $NAME$ @...GET $CATEGORY$ Command $SUBCATEGORY$ User interface $ONELINER$ Creates a GET object and displays it to the screen $SYNTAX$ @ , [SAY [PICTURE ] COLOR ] GET [PICTURE ] [WHEN ] [COLOR ] [VALID / RANGE , ] $ARGUMENTS$ The row coordinate. The column coordinate. Message to display. Character expression of PICTURE displayed. Color to be Used for the SAY expression. An variable/field name. Character expression of PICTURE to get. Logical expression to allow GET. Logical expression to validate GET input. Lower RANGE value. Upper RANGE value. Color string to be used for the GET expression. $DESCRIPTION$ This command adds a GET object to the reserved array variable named `GetList` and displays it to the screen. The field or variable to be added to the GET object is specified in and is displayed at row, column coordinate , . If the SAY clause is used will be displayed starting at , , with the field variable displayed at Row(), `Col() + 1`. If , the picture template for the SAY expression , is used, all formatting rules contained will apply See the TRANSFORM I function for further information. If is specified, the PICTURE clause of will be used for the GET object and all formatting rules will apply. See the table below for GET formatting rules. If the WHEN clause is specified, when evaluates to a logical true (.T.) condition, the GET object will he activated otherwise the GET object will be skipped and no information will be obtained via the screen. The name of a user-defined function returning a logical true (.T.) or false ( F.) or a code block may be, specified in This clause not activated until a READ command or ReadModal() function call is issued. If the VALID clause is specified and evaluates to it logical true (.T.) condition the current GET will be considered valid and the get operation will continue onto the next active GET object. If not, the cursor will remain on this GET object until aborted or until the condition in evaluates to true (.T.). The name of a user-defined function returning a logical true (.T.) or false (.F.) or it code block may be specified in . This clause is not activated until a READ command or ReadModal() function call is issued. If the RANGE clause is specified instead of the VALID clause, the two inclusive range values for must be specified in and . Id is a date data type, and must also be date data types; if is a numeric data type and must also be numeric data types. If a value fails the RANGE test, the message "OUT OF RANGE" will appear in the SCOREBOARD area (row = 0, col = 60). The RANGE message may be turned off it the `SET SCOREBOARD` command or Set() function appropriately toggled. $NOTES$ GET functions/formatting rules: @A Allows only alphabetic characters. @B Numbers will be left justified @C All positive numbers will be followed by CR. @D All dates will be in the SET DATE format. @E Dates will be in British formal: numbers in European format. @K Allows a suggested value to be seen within the GET area but clears It if any non cursor key is pressed when the cursor is in the first Position in the GET area. @R Non template characters will be inserted. @S Allows horizontal scrolling of a field or variable that is characters wide. @X All negative numbers will be followed by DB @Z Displays zero values as blanks. @! Forces uppercase lettering @( Displays negative numbers in parentheses with leading spaces. @) Displays negative numbers in parentheses without leading spaces. GET templates/formatting rules: A Only alphabetic characters allowed. N Only alphabetic and numeric characters allowed X Any character allowed. L Only T or F allowed For logical data. Y Only Y or N allowed for logical data. 9 Only digits, including signs, will be allowed. # Only digits, signs. and spaces will he allowed. ! Alphabetic characters are converted to Uppercase. $ Dollar will be displayed in place of leading spaces for numeric data types. * Asterisk,, will Be displayed in place of leading spaces for numeric data types. . Position of decimal point. , Position of comma. Format PICTURE functions may he grouped together as well as used in conjunction with a PICTURE templates; however, a blank space must be included in the PICTURE string if there are both functions and templates. $EXAMPLES$ LOCAL cVar := Space( 50 ), nId := 0 LOCAL GetList := {} CLS @ 3, 1 SAY "Name" GET cVar PICTURE "@!S 30" @ 4, 1 SAY "Id" GET nId PICTURE "999.999" READ ? "The name you entered is", cVar ? "The id you entered is", nId $STATUS$ R $COMPLIANCE$ C $PLATFORMS$ All $SEEALSO$ @...SAY, READ, Transform() $END$ */ /* $DOC$ $TEMPLATE$ Command $NAME$ @...SAY $CATEGORY$ Command $SUBCATEGORY$ User interface $ONELINER$ Displays data at specified coordinates of the current device. $SYNTAX$ @ , SAY [ PICTURE ] [COLOR ] $ARGUMENTS$ Row coordinate Column coordinate Value to display PICTURE format Color string $DESCRIPTION$ This command displays the contents of at row column coordinates , . A PICTURE clause may be specified in . If the current device is set to the printer, the output will go to the printer; the default is for all output to go to the screen. For a complete list of PICTURES templates and functions, see the `@...GET` command. $EXAMPLES$ CLS @ 2, 1 SAY "Harbour" @ 3, 1 SAY "is" COLOR "b/r+" @ 4, 1 SAY "Power" PICTURE "@!" $STATUS$ R $COMPLIANCE$ C $PLATFORMS$ All $FILES$ $SEEALSO$ @...GET, SET DEVICE, Transform() $END$ */