Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clearing a variable that contains a text value 1

Status
Not open for further replies.

rpyoung

Technical User
Jan 24, 2003
5
GB
Im looking to Clearing a variable that contains a text value in my script as it hold the previous value if the next entry is empty????

i hope the above makes sense


Cheers

Rob
 
You can do this as follows:

dim x
x = "Hello stringy world"
WScript.Echo x
x = ""
WScript.Echo x
 
someone should get a star,,,i feel like a teacher in a class room!!! who thought vbscript could be such fun
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top