Difference between revisions of "ACCEPT"

From Recital Documentation Wiki
Jump to: navigation, search
(Products)
 
Line 27: Line 27:
  
 
==Products==
 
==Products==
Recital Mirage Server, Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]

Latest revision as of 14:01, 10 November 2009

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