清除字符串变量 [英] clear string variables

查看:100
本文介绍了清除字符串变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我没有N个字符串变量..我想清楚地知道所有的字符串变量都用10行编码..任何人都可以给我编码..pls

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

推荐答案

不确定自己要问的是什么,但是您需要一次清除每个字符串变量,例如example

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 = ""



除非您的字符串在数组中,否则可以使用FOR ... NEXT循环,例如:-



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


这篇关于清除字符串变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆