SetFldState Function | |
-- todo --
Assigns a field modification or deletion state value to a field or record in a table or cursor.
Namespace:
XSharp.VFP
Assembly:
XSharp.VFP (in XSharp.VFP.dll) Version: 2.19
Syntax FUNCTION SetFldState(
uField,
nFieldState,
uArea
) AS LOGIC CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public static bool SetFldState(
Usual uField = default,
Usual nFieldState = default,
Usual uArea = default
)
Request Example
View SourceParameters
- uField (Optional)
- Type: Usual
- nFieldState (Optional)
- Type: Usual
- uArea (Optional)
- Type: Usual
Specifies the alias of the table or cursor in which the modification or deletion status is assigned.
Or
Specifies the work area of the table or cursor in which the modification or deletion status is assigned.
The field modification or deletion state value is assigned for the table or cursor open in the currently selected work area if SetFLDState( )
is issued without the optional uArea arguments.
Return Value
Type:
Logic
Logical
Remarks
X# uses field state values to determine which fields in tables or cursors are updated. SetFLDState( ) makes it possible for you to control
which fields X# attempts to update, regardless of which fields have been modified in the table or cursor.
nFieldstate | Modification or deletion status |
---|
1 | Field has not been modified or deletion status has not changed. |
2 | Field has been modified or deletion status has changed. |
3 | Field in an appended record has not been modified or deletion status has not changed for the appended record. |
4 | Field in an appended record has been modified or deletion status has changed for the appended record.. |
Examples 1Close Databases
2Set MultiLocks ON
3Set PATH TO (HOME(2) + 'Data\')
4Open Database testdata
5Use Customer
6= CursorSetProp('Buffering', 5, 'customer')
7Clear
8? GetFldState('cust_id')
9Replace cust_id WITH '***'
10? GetFldState('cust_id')
11= SetFLDState('cust_id', 1)
12? GetFldState('cust_id')
13= TableRevert(.T.)
See Also