Difference between revisions of "ACCEPT"

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

Revision as of 11:00, 24 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