GETFLDSTATE( ) Function
|Visual FoxPro 9.0 SP2
|GETFLDSTATE( ) Function
Returns a numeric value indicating if a field in a table or cursor has been modified or had a record appended, or if the deleted status of the current record has been changed.
GETFLDSTATE(cFieldName | nFieldNumber [, cTableAlias | nWorkArea])
- cFieldName| nFieldNumber
Specifies the name of the field or the number of the field for which the modification status is returned. The field number nFieldNumber corresponds to the position of the field in the table or cursor structure. DISPLAY STRUCTURE or FIELD( ) can be used to determine a field's number.
You can specify –1 for nFieldNumber to return a character string consisting of deletion and modification status values for all fields in the table or cursor. For example, if a table has five fields and only the first field has been changed, GETFLDSTATE( ) returns
The 1 in the first position indicates the deletion status has not been changed.
You can also include 0 for nFieldNumber to determine if the deletion status of the current record has changed since the table or cursor was opened.
Using GETFLDSTATE() only determines if the deletion status of the current record has changed. For example, if you mark a record for deletion and then recall it, GETFLDSTATE() indicates the deletion status has changed even though the record's deletion status has returned to its original state. Use DELETED() to determine the current deletion status of a record.
Specifies the alias of the table or cursor for which the field modification or record deletion status is returned.
Specifies the work area of the table or cursor for which the field modification or record deletion status is returned.
If you do not specify an alias or work area, GETFLDSTATE( ) returns a value for a field in the currently selected table or cursor.
Comment or report problem with topic