Difference between revisions of "ACCEPT"

From Recital Documentation Wiki
Jump to: navigation, search
Line 34: Line 34:
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:Screen Forms]]
 +
[[Category:Screen Forms Commands]]

Revision as of 14:32, 3 June 2009

Class

Screen Forms


Purpose

Prompt for input to a memory variable


Syntax

ACCEPT [<expC>] TO <memvar>


See Also

@...GET, DIALOG GET, INPUT, READ, WAIT


Description

The ACCEPT command prompts for input to the memory variable <memvar>. If the optional <expC> is specified, this will be displayed as the prompt, otherwise a colon ':' will be displayed. The user entry is stored in the <memvar> as a character string. If the [RETURN] key is entered, the <memvar> will contain a null string. If the <memvar> does not exist prior to the ACCEPT then it will be created.


Example

accept "Enter customer name? " to name
Enter customer name?  BILL''
? name
BILL
? type("name")
C


Products

Recital Mirage Server, Recital Terminal Developer