有什么函数能把结构的内容清除?结构如下:
type MyStrcut
n as integer
fData as float
strArray(5) as string
end typedim tempStruct as MyStrcut如果
tempStruct.n = 10
tempStruct.fData = 1.25
tempStruct.strArray(0) = "111"
tempStruct.strArray(1) = "222"用什么函数可以把结构tempStruct的内容一次清空,即
tempStruct.n = 0
tempStruct.fData = 0.0
tempStruct.strArray(0) = ""
tempStruct.strArray(1) = ""
tempStruct.strArray(2) = ""
tempStruct.strArray(3) = ""
tempStruct.strArray(4) = ""
tempStruct.strArray(5) = ""谢谢~
type MyStrcut
n as integer
fData as float
strArray(5) as string
end typedim tempStruct as MyStrcut如果
tempStruct.n = 10
tempStruct.fData = 1.25
tempStruct.strArray(0) = "111"
tempStruct.strArray(1) = "222"用什么函数可以把结构tempStruct的内容一次清空,即
tempStruct.n = 0
tempStruct.fData = 0.0
tempStruct.strArray(0) = ""
tempStruct.strArray(1) = ""
tempStruct.strArray(2) = ""
tempStruct.strArray(3) = ""
tempStruct.strArray(4) = ""
tempStruct.strArray(5) = ""谢谢~
解决方案 »
- vb中程式更新检查,有没有好的方法,急!!
- OLE的操作问题!和WEB IE的设置问题~~~怎么就是没人回啊
- 请问:AutoWBPY.dll 的引用问题 ,如何引用呢。急
- 水晶报表高手请进来,小弟求救..........高分求问
- 求动态报表的设计思想?报表由可以设计的报表(我知道的是由WORLD和EXCEL设计打印),有其他方法吗?
- 如何用vb中通过ADO建立ODBC数据源,而不是通过RDO
- 请问下面的句子存在什么错误吗??请各位老师指导
- 复制问题!
- 如何解决Treeview 中Node的Key值重复的问题
- ActiveReports 2.0如何得到當前頁碼?
- 急救!一个第三方控件在没有VB的环境下不能运行
- 真的很急,希望各位高手能指点,不胜感激!!!
dim tempStruct as MyStrcuttempStruct.n = 10
tempStruct.fData = 1.25
tempStruct.strArray(0) = "111"
tempStruct.strArray(1) = "222"
''清除
dim tem as MyStrcut
tempStruct=tmp
ZeroMemory的第二个参数怎么用
我用ZeroMemory tempStruct,Len(tempStruct)
出错了~
为什么?
tempStruct.n = 0
tempStruct.fData = 0.0
tempStruct.strArray(0) = ""
tempStruct.strArray(1) = ""
tempStruct.strArray(2) = ""
tempStruct.strArray(3) = ""
tempStruct.strArray(4) = ""
tempStruct.strArray(5) = ""dim tem as MyStrcut
tempStruct=tmp这两种方式,运行时都出现 内存不能访问的错误!!怎么回事呢??