Hi Tracy,
As Sergey pointed out, you have to pass all three captions, even if you use only 2 or 1 button.
>I Nadya, I used it with VFP7 w/SP1.
>
>Here is some dummy code I tested it with successfully:
>
>
>set LIBRARY TO vfpevent.fll additive
>*LIST STATUS
>#INCLUDE foxpro.h
>LOCAL lnResult
>lnResult=EventMBox("Do you want to continue?",;
> MB_YESNOCANCEL + MB_ICONQUESTION + MB_DEFBUTTON3,;
> "Please choose Continue or Quit",;
> "&Continue",;
> "&Quit",;
> "&I don't know!")
>
>DO CASE
>CASE lnResult=IDYES
> WAIT WINDOW "You choice to continue"
>CASE lnResult=IDNO
> WAIT WINDOW "You chose to Quit"
>CASE lnResult=IDCANCEL
> WAIT WINDOW "You said you don't know!"
>ENDCASE
>
>SET LIBRARY TO
>
>
>>Hi again, Tracy.
>>
>>I've read the accomponied document with this class and it doesn't tell us, for which version of VFP does this class work. What VFP version did you try?
>>
>>Since this is only fll, no source code, it may depend on external DLLs, which could differ from VFP6 to VFP7.
>>
>>>I did Nadya! :0)
>>>Tracy
>>>
>>>>Hi Tracy,
>>>>
>>>>You can put your comment into Downloads area.
>>>>
>>>>>Thanks Sergey, I just tested it and it works great!
>>>>>Tracy
>>>>>
>>>>>>>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.
If it's not broken, fix it until it is.
My Blog