Property Integer Verify_Delete_msg
Read Access: | Get Verify_Delete_msg to IntegerVariable |
Write Access: | Set Verify_Delete_msg to IntegerVariable/Value |
Specifies the message to use for record delete confirmation.
The specified function should return zero (0) if the Delete should be allowed, or non-zero if the Delete should be not be allowed.
The default value for the cDbCJGrid and cDbCJGridPromptList classes is Line_Delete_Confirmation, for all other classes, the default is Delete_Confirmation.
For a full explanation on the different values for this message, see the Confirm function.
This sample turns off delete confirmation.
Set Verify_Delete_msg to (RefFunc(No_Confirmation))
This sample sets delete confirmation to the default delete confirmation message.
Set Verify_Delete_msg to (RefFunc(Delete_Confirmation))
This sample sets delete confirmation to a custom confirmation message.
Function MyDeleteConfirmation Returns Integer Integer eResponse Move (YesNo_Box("You are about to delete a record. Proceed?", "Delete Warning")) to eResponse If (eResponse = MBR_YES) Begin Function_Return 0 End Else Begin Function_Return 1 End End_Function Set Verify_Delete_msg to (RefFunc(MyDeleteConfirmation))
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 cler 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_Data_Loss_msg | Verify_Delete