Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 01-04-2005, 09:19 AM   #1 (permalink)
 
Master Techie

Join Date: Mar 2004

Posts: 2,069

rookie1010

Default vbOK and vbOKOnly button

Hi
I was wondeirng what the difference between these statements is

intResponse = MsgBox("Ready to Print", vbOKOnly)

intResponse = MsgBox("Ready to Print", vbOK)
rookie1010 is offline  
Old 01-04-2005, 10:35 AM   #2 (permalink)
 
Monster Techie

Join Date: Jul 2003

Posts: 1,179

Emily is on a distinguished road

Send a message via AIM to Emily
Default

I'm not 100% on this, but I'm pretty sure that vbOKOnly means that on the msg box there will be only an OK button, but with vbOK there'll be an OK and a Cancel button on the message box.
__________________
<a href=\"http://www.upstark.com\">www.upstark.com</a>
Emily is offline  
Old 01-04-2005, 02:48 PM   #3 (permalink)
 
Newb Techie

Join Date: Nov 2004

Posts: 6

billgrande

Default

You are correct. VBOK will give the cancel button also, the VbOKONLY is just the ok button.

hrmm I thought I replied to this one earlier?
billgrande is offline  
Old 01-04-2005, 04:28 PM   #4 (permalink)
 
Master Techie

Join Date: Mar 2004

Posts: 2,069

rookie1010

Default

thanks emily !!!
rookie1010 is offline  
Old 01-04-2005, 08:20 PM   #5 (permalink)
 
Monster Techie

Join Date: Jul 2003

Posts: 1,179

Emily is on a distinguished road

Send a message via AIM to Emily
Default

No problem.
__________________
<a href=\"http://www.upstark.com\">www.upstark.com</a>
Emily is offline  
Old 01-05-2005, 06:12 AM   #6 (permalink)
 
Master Techie

Join Date: Mar 2004

Posts: 2,069

rookie1010

Default

i read some place that vbOKOnly is an integer value to determine the buttons inside the message boxes while
VBOK is a return value to determine which command button the user clicked.

in that case intResponse = MsgBox("Ready to Print", vbOK) would be incorrect, right?
rookie1010 is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On