Verify_Data_Loss_msg - dbAppClient_

Specifies the message to use for data loss confirmation

Type: Property

Access: Read/Write

Data Type: Integer

Parameters: None

Syntax
 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


Description

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.

Sample

This sample turns off data loss confirmation.

Set Verify_Data_Loss_msg to (RefFunc(No_Confirmation))


Sample

This sample sets data loss confirmation to the default data loss message.

Set Verify_Data_Loss_msg to (RefFunc(Data_Loss_Confirmation))


Sample

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.

See Also

RefFunc function | Verify_Save_msg | Verify_Delete_msg | Verify_Data_Loss