>>Thanks Greg
You are absolutely correct. I tried using 276 as the parameter, and it displayed the correct buttons. There is a mis-print in the book I guess, because I checked and re-checked it. Thanks for the help. Any ideas about changing the text of the buttons?
Regards,
Carmen
This question seems trite in view of some of the other questions I have been reading, however the only dumb question is the one you don't ask, so here goes. When using the messagebox() function, is it possible to change the text on the selection buttons? In addition to that, when I use the messagebox() function, I am experiencing some unusual behaviour. I tried using the following code to produce a message which would show the stop icon, the "YES,NO" button set, and set the focus to the second button.According to the Hacker's Guide for VFP 6.0, the integer should have been as follows:
>> 16 - Stop Icon
>> 2 - Yes, No
>> 256 - 2nd button has the focus. When I use the 274 parameter however, I get the three buttons, Abort,Retry,Ignore showing up. I have tried it many different ways, but with the same result.
>>
>>Thanks to All
>>Regards
>>Carmen
>
>Carmen,
>
>I think YesNo is 4
>
>should be 4 + 16 + 256
>
>excerpt from FoxPro.h
>
>
>*-- MessageBox parameters
>#DEFINE MB_OK 0
>#DEFINE MB_OKCANCEL 1
>#DEFINE MB_ABORTRETRYIGNORE 2
>#DEFINE MB_YESNOCANCEL 3
>#DEFINE MB_YESNO 4
>#DEFINE MB_RETRYCANCEL 5
>
>#DEFINE MB_ICONSTOP 16
>#DEFINE MB_ICONQUESTION 32
>#DEFINE MB_ICONEXCLAMATION 48
>#DEFINE MB_ICONINFORMATION 64
>
>#DEFINE MB_APPLMODAL 0
>#DEFINE MB_DEFBUTTON1 0
>#DEFINE MB_DEFBUTTON2 256
>#DEFINE MB_DEFBUTTON3 512
>#DEFINE MB_SYSTEMMODAL 4096
>
>