Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Messageboxes
Message
 
To
20/03/2000 14:41:25
Richard Williams
State of Ohio, Dept. of Development
Columbus, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00348030
Message ID:
00348035
Views:
28
>How do I get my messagebox with Yes and No buttons to pop up with the Yes highlighted instead of No. In other words if I am quickly keying in info I want to be able to enter on through yes on my messagebox instead of no.
>Thanks
>Rick

cMessageTitle = 'My Application'
cMessageText = 'Record not found. Would you like to search again?'
nDialogType = 4 + 32 + 256
* 4 = Yes and No buttons
* 32 = Question mark icon
* 0 = First button is default

nAnswer = MESSAGEBOX(cMessageText, nDialogType, cMessageTitle)


3rd numeric value selects default button.

Value Default button
0 First button
256 Second button
512 Third button

HTH

Jeff

It's Time to get a gun.

That's what I've been thinkin.

I think I can afford one, If I do a little less Drinkin.

www.TrueGeeks.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform