version 2003
PA_Confirm (message) char
Parameter | Type | Description | |
message | char * | Message to display in the confirmation dialog box | |
Function result | char | 1 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
Error Handling
PA_GetLastError always returns eER_NoErr