The VB VarType function is the way for determining what type of data is contained in a variant variable, if it is an array and of which type. For example:
Dim Barray(20) As Byte
Dim MyVariant as Variant
MyVariant = Barray
Return = VarType(MyVariant)
"Return" turns out to be equal to vbArray Or vbByte.
No comments:
Post a Comment