Difference between revisions of "ACCEPT"

From Recital Documentation Wiki
Jump to: navigation, search
(Products)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Class==
 
Screen Forms
 
 
 
 
==Purpose==
 
==Purpose==
 
Prompt for input to a memory variable
 
Prompt for input to a memory variable
Line 31: Line 27:
  
 
==Products==
 
==Products==
Recital Mirage Server, Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:Screen Forms]]
 +
[[Category:Screen Forms Commands]]
 +
[[Category:Input Output]]
 +
[[Category:Input Output 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