1 1jet Registered User. Local time Today, 18:15 Joined Sep 15, 2008 Messages 117 Sep 25, 2008 #1 assign null to a string value?
boblarson Smeghead Local time Today, 02:15 Joined Jan 12, 2001 Messages 32,040 Sep 25, 2008 #2 I don't believe you can do that. The best you can do is make it an empty string: strMyString = ""
D DJkarl Registered User. Local time Today, 04:15 Joined Mar 16, 2007 Messages 1,028 Sep 25, 2008 #3 1jet said: assign null to a string value? Click to expand... 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.
1jet said: assign null to a string value? Click to expand... 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.