SHOW GETS

From Recital Documentation Wiki
Jump to: navigation, search

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