Thread: Msgbox issue?
View Single Post
  #1 (permalink)  
Old 04-12-2008, 10:15 AM
badkarma badkarma is offline
Senior Member
 
Join Date: Mar 2008
Posts: 108
Default Msgbox issue?

Weird one here,

I did a msgbox with a message, but forgot to put in a title (not even "") but with a button and icon selection ... for example ...

msgbox("hello world",cMsgboxYesNo,cQuestion)

... this resulted in a msgbox with just an OK button and a title message of "4"

To replicate as an example, the code is shown below, first a good msgbox, second a badly formatted msgbox function

Quote:
Sub Globals
'Declare the global variables here.

End Sub

Sub App_Start

Msgbox ("This is the first yes/no test with title","Exit", cMsgBoxYesNo,cMsgBoxQuestion)
Msgbox ("This is the second yes/no test, but this time without title", cMsgboxYesNo,cMsgboxQuestion)

End Sub
But, both the compiler and the PDA when running the EXE , allow execution, albeit on the problematical msgbox, it shows "4" in the title and has OK instead of Yes / No as buttons. (I guess the "4" is the internal number for cMsgboxYesNo?)

Is this a bug in the checking of code at compile time which cannot detect my dumb programming / missing "" ?
Reply With Quote