Difference between revisions of "READMODE()"
From Recital Documentation Wiki
Helengeorge (Talk | contribs) |
Helengeorge (Talk | contribs) (→Products) |
||
Line 57: | Line 57: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] |
Latest revision as of 15:05, 7 December 2009
Purpose
Function to return a character string describing the 'read' mode for the currently active form
Syntax
READMODE()
See Also
SET(), SYS(), SET PREFORM, SET PRERECORD, CREATE, @...GET, SET POSTRECORD, SET POSTFORM, MODIFY STRUCTURE
Description
The READMODE() function returns a character string describing the 'read' mode for the currently active form. Any of the following strings can be returned.
Readmode | Description |
---|---|
READ | READ command is active |
EDIT | EDIT command is active |
CHANGE | CHANGE command is active |
INSERT | INSERT command is active |
QUERY | QUERY command is active |
APPEND | APPEND command is active |
No form active |
The READMODE() function always returns a character string in upper case. This function is very useful when used in table and form triggers for determining the current read state for conditional coding.
Example
// Pre-record trigger procedure procedure form_trigger if readmode() = "APPEND" return else //...commands endif return use accounts set form to details set prerecord to form_trigger edit
Products
Recital