Difference between revisions of "RESTGETS()"

From Recital Documentation Wiki
Jump to: navigation, search
(Class)
 
Line 1: Line 1:
 
 
 
==Purpose==
 
==Purpose==
 
Restore status of previously saved GETS
 
Restore status of previously saved GETS
Line 47: Line 45:
  
 
==Products==
 
==Products==
Recital Mirage Server, Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Latest revision as of 15:21, 7 December 2009

Purpose

Restore status of previously saved GETS


Syntax

RESTGETS(<expC>)


See Also

@...GET, CLEAR GETS, FMT(), READ, RESTORE GETS, RESTORE SCREEN, SAVE GETS, SAVEGETS(), SAVE SCREEN


Description

The RESTGETS() function lets you restore the GETS previously saved by the SAVEGETS() function. The <expC> is the name of the variable to which the return value of SAVEGETS() was stored.


Example

// Set up validation procedure
procedure checkit
  parameters check
  save screen
  // Specify SAVEGETS() and CLEAR GETS before @...gets
  m_save=savegets()
  clear gets
  @0,1 get field4
  // Activate gets in validation procedure
  read
  // Reactivate reads in main screen form
  if not empty(field4)
      set validate on
  endif
  restgets(m_save)
  restore screen
return
 
clear
@1,1 get field1
@2,1 get field2 when field1="g"
@3,1 get field3 validate with checkit
read


Products

Recital