Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
(Dumb question)=1
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00428875
Message ID:
00428879
Views:
21
Cool I never knew that, I herd about the foxpro.h file but never really looked at it

Follow up question
could I modify the default messagebox()?
ya know so if I call the messagebox function up?

btw thanks again big time

>Hi Stephen,
>
>messagebox returns a value depending on which button the user clicks. In this case, 1 = IDOK (from foxpro.h), and so it indicates that the user clicked OK.
>
>By the way, the 33 inside the messagebox call is made up of MB_OKCANCEL (1) + MB_ICONQUESTION (32), so the messaebox will display with one of those green circles with a question mark inside it and will display the OK and Cancel buttons.
>
>Cheers,
>
>Andrew
>
>>Hello everybody
>>
>>I have a what I think is a dumb question, I see code like this;
>>
>>IF lWarn AND messagebox("Really warn users to quit system ?",33)=1
>> nChannel=FCREATE("SEIZE.WRN")
>> IF nChannel = -1
>> =messagebox("Error creating SEIZE.WRN",48)
>> ELSE
>> =FCLOSE(nChannel)
>> this.lMySeize=.t.
>> ERASE SEIZE.OFF
>> ERASE SEIZE.NOW
>> ENDIF
>>ENDIF
>>
>>Whats the "=1" after the messagebox() function mean?
>>
>>thanks in advance
>>
>>Stephen McLaughlin
>>stephenmclaughlin@email.com
Stephen McLaughlin
"Sexy Steve Valenteno", "Blastmaster"
stephenmclaughlin@gmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform