Get(RecordOpenState)
Syntax: Get ( RecordOpenState ) |
Parameters: None
Data type returned: Number
Description:
Returns a number representing the open/committed status of the current record.
Returns 0 for a closed or committed record.
Returns 1 for a new record that hasn't been committed.
Returns 2 for a modified record that hasn't been committed.
This is particularly useful for cases where you may have a script looping through a set of records making a change of some sort. If a user is editing a record, your script could skip over the record in question and, depending on the script and its error capture state, may make no note of it.
Examples:
Returns 1 if the current record is a new record that hasn't been saved.