Difference between revisions of "SHOW GETS"

From Recital Documentation Wiki
Jump to: navigation, search
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=SHOW GETS=
 
 
 
==Class==
 
Screen Forms
 
 
 
 
==Purpose==
 
==Purpose==
Refreshes current @…GETs on the screen.
+
Refreshes current @...GETs on the screen.
  
  
Line 19: Line 12:
  
 
==Description==
 
==Description==
The SHOW GETS command refreshes current @…GET values on the screen.  This command is particularly useful when called from a VALID function or from trigger procedures which change the values of currently displayed @…GETs.  NOTE: This command is not designed for use in table fields, created with the DEFINE TABLE command.
+
The SHOW GETS command refreshes current @…GET values on the screen.  This command is particularly useful when called from a VALID function or from trigger procedures which change the values of currently displayed @...GETs.  NOTE: This command is not designed for use in table fields, created with the DEFINE TABLE command.
  
  
Line 25: Line 18:
 
<code lang="recital">
 
<code lang="recital">
 
function get_state
 
function get_state
do case
+
  do case
case substr(m_zip,1,2) = "01"
+
  case substr(m_zip,1,2) = "01"
m_state = "MA"
+
      m_state = "MA"
case substr(m_zip,1,2) = "91"
+
  case substr(m_zip,1,2) = "91"
m_state = "CA"
+
      m_state = "CA"
otherwise
+
  otherwise
m_state = "XX"
+
      m_state = "XX"
endcase
+
  endcase
show gets
+
  show gets
 
return .T.
 
return .T.
  
Line 39: Line 32:
 
m_state = space(2)
 
m_state = space(2)
 
@10,05 say "Enter Zip" get m_zip;
 
@10,05 say "Enter Zip" get m_zip;
valid get_state()
+
  valid get_state()
 
@12,05 say "Enter State" get m_state
 
@12,05 say "Enter State" get m_state
 
read
 
read
Line 46: Line 39:
  
 
==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 16:12, 25 November 2009

Purpose

Refreshes current @...GETs on the screen.


Syntax

SHOW GETS


See Also

@...GET, SET POSTMENU, SET POSTRECORD, SET PREMENU, SET PRERECORD


Description

The SHOW GETS command refreshes current @…GET values on the screen. This command is particularly useful when called from a VALID function or from trigger procedures which change the values of currently displayed @...GETs. NOTE: This command is not designed for use in table fields, created with the DEFINE TABLE command.


Example

function get_state
  do case
  case substr(m_zip,1,2) = "01"
      m_state = "MA"
  case substr(m_zip,1,2) = "91"
      m_state = "CA"
  otherwise
      m_state = "XX"
  endcase
  show gets
return .T.
 
m_zip = space(5)
m_state = space(2)
@10,05 say "Enter Zip" get m_zip;
  valid get_state()
@12,05 say "Enter State" get m_state
read


Products

Recital