Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MessageBox with different captions on buttons
Message
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00618774
Message ID:
00618867
Views:
12
>>I recall a thread a while ago that discusses a way to use a messagebox and allow for changing the captions on the buttons to something other than ok/cancel or yes/no. However I can not locate it by searching. Does anyone know of a way to do this?
>>
>>TIA,
>>Tracy
>
>See file #9676.

Hi Sergey,

Neil's example does work, but when I tried to use MB_YESNO instead it gave me Function argument value, type, or count is invalid (Error 11)
A value passed to a function is either not of the expected data type, or the value of the argument is out of range for this function.


You are passing too many arguments to a function.

Here is my test. What is wrong?
LOCAL lnResult
#include foxpro.h
lnResult = EventMBox(version(1), ;
           MB_YESNO + MB_ICONEXCLAMATION, ;
           "EventMBox", ;
           "&Visual",   ;
           "&FoxPro")

if lnResult = IDYES
	wait window "Wow!" nowait
endif
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform