Difference between revisions of "CLEAR GETS"

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==
 
Clear pending @...GET commands
 
Clear pending @...GET commands
Line 12: Line 8:
  
 
==See Also==
 
==See Also==
[[@...GET]], [[CLEAR]], [[CLEAR ALL]], [[CLEAR LOCKS]], [[CLEAR MEMORY]], [[READ]], [[RESTORE GETS]], [[SAVE GETS]]
+
[[@...GET]], [[CLEAR]], [[CLEAR ALL]], [[CLEAR LOCKS]], [[CLEAR MEMORY]], [[CLEAR READ]], [[READ]], [[RESTORE GETS]], [[SAVE GETS]]
  
  
Line 23: Line 19:
 
// Set up validation procedure
 
// Set up validation procedure
 
procedure checkit
 
procedure checkit
 
+
  parameters check
parameters check
+
  save screen
save screen
+
  // Specify SAVE GETS and CLEAR GETS before @...gets
// Specify SAVE GETS and CLEAR GETS before @...gets
+
  save gets
save gets
+
  clear gets
clear gets
+
  @1,1 get t1
@1,1 get t1
+
  @3,1 get t3
@3,1 get t3
+
  read
read
+
  // Reactivate reads in main screen form
// Reactivate reads in main screen form
+
  restore gets
restore gets
+
  restore screen
restore screen
+
 
+
 
return
 
return
  
Line 47: Line 41:
  
 
==Products==
 
==Products==
Recital Mirage Server, Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:Screen Forms]]
 +
[[Category:Screen Forms Commands]]

Latest revision as of 14:52, 10 November 2009

Purpose

Clear pending @...GET commands


Syntax

CLEAR GETS


See Also

@...GET, CLEAR, CLEAR ALL, CLEAR LOCKS, CLEAR MEMORY, CLEAR READ, READ, RESTORE GETS, SAVE GETS


Description

The CLEAR GETS command releases all pending GETS issued with the @...GET command. This command is often used with SAVE GETS and RESTORE GETS to save a batch of GETS, clear them to free the screen for other input and then restore them.


Example

// Set up validation procedure
procedure checkit
  parameters check
  save screen
  // Specify SAVE GETS and CLEAR GETS before @...gets
  save gets
  clear gets
  @1,1 get t1
  @3,1 get t3
  read
  // Reactivate reads in main screen form
  restore gets
  restore screen
return
 
@1,1 get field1
@2,1 get field2;
  when field1="g"
@3,1 get field3 validate with checkit
read


Products

Recital