PA_Confirm

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_Confirm (message) char

ParameterTypeDescription
messagechar *Message to display in the confirmation dialog box
Function resultchar1 if the user accepts the dialog box.

Description

The routine PA_Confirm displays a confirmation dialog box composed of a note icon, a message, an OK button, and a Cancel Button.

Pass the message to be displayed in message (Pascal or C strings up to 255 characters).

If the user accepts the dialog box, PA_Confirm returns 1. Otherwise it returns 0.

This is just like the CONFIRM command, but you cannot customize the titles of the OK/Cancel buttons. See the 4th Dimension Language Reference manual for more information on this dialog box.

Example

Sample confirm (using ANSI string)

   if(PA_Confirm("Do you _really_ want to quit this wonderful area ?"))
   {
      myDoSaveTheAreaContent(. . .);
   }

See Also

CONFIRM, PA_Alert.

Error Handling

PA_GetLastError always returns eER_NoErr


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next