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 "" ?