Difference between revisions of "SHOW GETS"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
==Class== | ==Class== | ||
Screen Forms | Screen Forms | ||
Line 7: | Line 4: | ||
==Purpose== | ==Purpose== | ||
− | Refreshes current @ | + | Refreshes current @...GETs on the screen. |
Line 19: | Line 16: | ||
==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 @ | + | 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 22: | ||
<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 36: | ||
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 49: | Line 46: | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
+ | [[Category:Screen Forms]] | ||
+ | [[Category:Screen Forms Commands]] |
Revision as of 15:05, 3 June 2009
Class
Screen Forms
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 Mirage Server, Recital Terminal Developer