Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in my project i have N no of string variables.. i want clear that all string variables by with in 10 lines coding.. can anyone give me coding for that .. pls
Posted

1 solution

Not really sure what you are asking, but you will need to clear each string varible one at a time, from example

StringA = ""
StringB = ""
StringC = ""


unless your string are in an Array in which case you could use a FOR...NEXT loop for example :-

For idx as Integer = 0 TO UBound(MyStringArray)
  MyStringArray(idx) = ""
Next
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900