Make sure that all of your variables are initialized with values before you use them.
To be safe, initialize ALL variables with values as soon as you are about to use them.
Such as:
Dim A as String
A = "Test"
Dim i as integer
i = 0
.....
Most likely you are just getting a nag message that won't actually cause an error, but for example, say you try to do this:
Dim myStr
MsgBox(myStr,0,"Title")
(Ye
If myStr has no value, it could well have non-ascii or null characters within it, causing a corrupted messagebox at best, and an unhandled-exception leading to a crash or buffer-overflow at worst.
Main Topics
Browse All Topics





by: Omego2KPosted on 2009-10-26 at 11:34:01ID: 25665258
The simplest solution would be to assign a value to it. If you would post your code and where the exception occurs it would help us help you with how you may proceed.