DF_API_Disabled_Attribute
Set to True to avoid re-entrance.
Level
Global
Supported by
All Drivers
Type
Boolean, temporary
Access
Read/Write
Values
4095-byte combinations of: DF_FILE_NOT_TOUCHED, DF_FILE_TOUCHED_INACTIVE, DF_FILE_TOUCHED_ACTIVE
Remarks
DF_API_Disabled is set to True before the first time the callback message from an API command like SORT is received by your program and set to False at the end.
Sample
In this sample, the code returns True.
Object oSimpleProcess is a cObject
Function CallBack String sMessage Integer iType Returns Integer
String sType
Boolean bDisabled
Get_Attribute DF_API_DISABLED to bDisabled
Case Begin
Case (iType = DF_MESSAGE_TEXT)
Move "(Text)" to sType
Case Break
Case (iType = DF_MESSAGE_HEADING_1)
Move "(Message Heading 1)" to sType
Case Break
Case (iType = DF_MESSAGE_HEADING_2)
Move "(Message Heading 2)" to sType
Case Break
Case (iType = DF_MESSAGE_HEADING_3)
Move "(Message Heading 3)" to sType
Case Break
Case (iType = DF_MESSAGE_HEADING_4)
Move "(Message Heading 4)" to sType
Case Break
Case (iType = DF_MESSAGE_HEADING_5)
Move "(Message Heading 5)" to sType
Case Break
Case (iType = DF_MESSAGE_WARNING)
Move "(Warning)" to sType
Case Break
Case (iType = DF_MESSAGE_PROGRESS_TITLE)
Move "(Progress Title)" to sType
Case Break
Case (iType = DF_MESSAGE_PROGRESS_VALUE)
Move "(Progress value)" to sType
Case Break
Case End
Showln sMessage " -- " sType
End_Function
End_Object
Boolean bDisabled
Open Customer
Get_Attribute DF_API_DISABLED to bDisabled // <-- false
Sort Customer.File_Number "1 2 3" (DF_SORT_OPTION_BAD_DATA_FIXUP ior DF_SORT_OPTION_DUP_DATA_ABORT) (oSimpleProcess)
Get_Attribute DF_API_DISABLED to bDisabled // <-- false again