Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to focus to NO in message box
Message
From
27/02/2003 11:15:42
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00758807
Message ID:
00758810
Views:
14
>I am using the following code:
>In the following message box yes button is getting the focus i want to turn the focus to NO button.
>
>**********
>IF MESSAGEBOX("Word not found in picklist. Do you" + CHR(13) +;
> "want to ADD it to the picklist?",4+32) = 6
> SELECT (mTable)
> APPEND BLANK
>**************
>
>Thank you.

As explained in the help, you have to add 256 to the constants:
IF MESSAGEBOX("Word not found in picklist.  Do you" + CHR(13) +;
					  "want to ADD it to the picklist?",4+32+256) = 6
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform