|
-
Feb 8th, 2009, 05:39 AM
#1
[RESOLVED] Bug in vb ?
-
Feb 8th, 2009, 06:09 AM
#2
Re: Bug in vb ?
You overloaded the constant somewhere. I can do it too:
Code:
Private Sub Form_Load()
Dim vbExclamation As Integer
vbExclamation = 2
MsgBox "test", vbExclamation, App.Title
End Sub
-
Feb 8th, 2009, 06:17 AM
#3
Re: Bug in vb ?
You overloaded the constant somewhere
sorry dilettante, whats this mean really?pls explain a bit.
-
Feb 8th, 2009, 06:33 AM
#4
Re: Bug in vb ?
It means you declared a variable named vbExclamation somewhere. And somewhere along the line you set it to 2.
"Overloading" is when you give the same literal name more than one meaning. In this case you can declare something in module or procedure scope that is named the same as a gobal constant. While you are within that scope the compiler only sees the local value.
-
Feb 8th, 2009, 06:40 AM
#5
Re: Bug in vb ?
 Originally Posted by dilettante
It means you declared a variable named vbExclamation somewhere. And somewhere along the line you set it to 2.
"Overloading" is when you give the same literal name more than one meaning. In this case you can declare something in module or procedure scope that is named the same as a gobal constant. While you are within that scope the compiler only sees the local value.
tx dile,
but i am 100 percent user i have not used vbExclamation as a variable name
-
Feb 8th, 2009, 06:44 AM
#6
Re: Bug in vb ?
Well... at least do a Find and check.
Otherwise you have quite a mystery on your hands.
-
Feb 8th, 2009, 06:44 AM
#7
Re: Bug in vb ?
any way dile,
i put
Code:
MsgBox "test", 48, App.Title
and working for now.
http://visualbasic.freetutes.com/lea.../lesson18.html
-
Feb 8th, 2009, 06:47 AM
#8
Re: Bug in vb ?
 Originally Posted by dilettante
Well... at least do a Find and check.
Otherwise you have quite a mystery on your hands.
find helped to find 
Yah i am using a 3rd pary code and just found this line
Code:
Private Const vbExclamation = 2
-
Feb 8th, 2009, 06:52 AM
#9
Re: [RESOLVED] Bug in vb ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|