PDA

Click to See Complete Forum and Search --> : VB5 problems!!!


CyberCarsten
Nov 28th, 1999, 12:43 AM
I'm having some problems with my
VB5.
Every time use the vbYesNo or vbOKonly
it doesn't make a Yes and No buttons, but
Retry and Abort!!!!!!!
Why??!!!!!!!!!!!!!!!!!!!!!!!

/ CyberCarsten

Arda Jackson
Nov 28th, 1999, 01:47 AM
I'm just learning Visual Basic but I believe the following might be helpful:

MsgBox "Message", vbOKOnly, "Name"

Message = "Whatever you want to say.",
vbOKOnly = the VBOKOnly button
Name = "Whatever you want to called this"



------------------
A. J.

CyberCarsten
Nov 28th, 1999, 02:33 AM
Thank you!
I'll try it!

Arda Jackson
Nov 28th, 1999, 07:51 AM
Just wanted check to see if that worked ok for you.

CyberCarsten
Nov 28th, 1999, 09:19 PM
Hi!
I have just lost my copy of vb5, so i don't if it works....DAMN!!!!

/ CyberCarsten

jim
Nov 28th, 1999, 10:24 PM
There are 2 different versions of the Msgbox statement

Doesn't return a value:

MsgBox "Your Message",vbOKOnly, "Your Title"

Does return a value:
Dim RetCode As Integer

RetCode = MsgBox ("Your Message", vbYesNo, "Your Title")

Select Case RetCode

Case vbYes
'Case when user clicked yes

Case vbNo
'Case when user clicked no

End Select