how do i...

1jet

Registered User.
Local time
Today, 18:15
Joined
Sep 15, 2008
Messages
117
assign null to a string value?
 
I don't believe you can do that. The best you can do is make it an empty string:

strMyString = ""
 
assign null to a string value?

You can't in VBA. Best you could do make it a zero length string.

Code:
yourString = ""
or
Code:
yourString = Empty

Now if you are referring to a "Null terminated" string that some API's require then just add a Chr$(0) to the end of your string.
 

Users who are viewing this thread

Back
Top Bottom