ACCEPT

From Recital Documentation Wiki
Revision as of 14:32, 3 June 2009 by Yvonnemilne (Talk | contribs)

Jump to: navigation, search

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