如何判断CData是nothing?用If CData Is Nothing说是类型不配备
定义了下面这样的类型,可开始用的时候CData是nothing,表示没有初始化吗?那我该如何初始化?
Private Type ContrlData
sock As Winsock ' 接收和发送数据的Winsock
arr() As Byte ' 用于暂存剩余数据
strFieldName() As String ' 当表格帮定SQL数据源时跟表格绑定的字段
strFieldTobeReplace() As String ' 当表格帮定SQL数据源时字段内容需要作替换的字段(字段必须出现在SQL数据源的字段中)
strValueTobeReplace() As String ' 当表格帮定SQL数据源时需要替换的字段内容
strReplaceValue() As String ' 当表格帮定SQL数据源时用于替换满足替换条件的字段内容
End Type
Dim CData() As ContrlData