Property Integer Verify_Data_Loss_msg
Read Access: | Get Verify_Data_Loss_msg to IntegerVariable |
Write Access: | Set Verify_Data_Loss_msg to IntegerVariable/Value |
Specifies the message to use for data loss confirmation.
The specified function should return zero (0) if the data loss should be allowed, or non-zero if the data loss should be not be allowed.
The default value for the cDbCJGrid and cDbCJGridPromptList classes is No_Confirmation, for all other classes, the default is Data_Loss_Confirmation.
For a full explanation on the different values for this message, see the Confirm function.
This sample turns off data loss confirmation.
Set Verify_Data_Loss_msg to (RefFunc(No_Confirmation))
This sample sets data loss confirmation to the default data loss message.
Set Verify_Data_Loss_msg to (RefFunc(Data_Loss_Confirmation))
This sample sets data loss confirmation to a custom confirmation message.
Function MyDataLossConfirmation Returns Integer Integer eResponse Move (YesNo_Box("You are about to lose changed data. Proceed?", "Data Loss Warning")) to eResponse If (eResponse = MBR_YES) Begin Function_Return 0 End Else Begin Function_Return 1 End End_Function Set Verify_Data_Loss_msg to (RefFunc(MyDataLossConfirmation))
If you want to change the value of this property from it's class-level default value (for example, to make a particular view not clear after a save), you have to set this property in a data entry object (DEO) or data-aware container (e.g. dbView) that has an explicit 'Set Server' statement, or the property value will not be used.
RefFunc function | Verify_Save_msg | Verify_Delete_msg | Verify_Data_Loss