how to check whether an object/string exist....
if possible help me with a code
Printable View
how to check whether an object/string exist....
if possible help me with a code
With an object you usually do If ObjectVar Is Nothing Then...
A string could be checked for empty like If StringVar = vbNullString Then
where also If StringVar = "" Then... gives the same result, I think.
100% correct.Quote:
Originally Posted by WoF
the only difference is a Null string has no allocated memory, and can cause errors when passed to a API.
check under NULL's in this article for more info..
Gremmy..