Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Message Box Decision
Message
From
16/11/2004 06:04:01
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00961641
Message ID:
00961642
Views:
10
Neil

Check return value of messagebox. It returns 6 for Yes and 7 for No. If you include foxproh.H thera are constants IDNo and IDYes.

Agnes

>I have a message box with Yes and No buttons to delete a record in a grid.
>
>
>MESSAGEBOX("Are you sure you want to delete this contact?",4,'Delete contact')
>
>
>I would like to delete the record if yes. How do I test whether yes or no has been pressed on the message box?
>
>Many Thanks
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform