比如我自定义了下面结构
Public Type UserDefinedTime
year As Integer
month As Byte
day As Byte
hour As Byte
minute As Byte
second As Byte
End Type
有没有什么办法知道这个结构需要的字节数?
...全文
1387打赏收藏
要想知道一个用户自定义数据类型的长度,有没有象C中的sizeof的关键字或者函数?
比如我自定义了下面结构 Public Type UserDefinedTime year As Integer month As Byte day As Byte hour As Byte minute As Byte second As Byte End Type 有没有什么办法知道这个结构需要的字节数?