һַṩйر Variant Ϣ

TypeName(varname)
ѡ varname κα

ֵ
TypeName ֵ£

ֵ  
Byte ֵֽ 
Integer ֵ 
Long ֵ 
Single ȸֵ 
Double ˫ȸֵ 
Currency ֵ 
Decimal ʮֵ 
Date ڻʱֵ 
String ֵַ 
Boolean Boolean ֵTrue  False 
Empty δʼ 
Null Ч 
<object type> ʵʶ 
Object һ 
Unknown δ֪ 
Nothing δöʵĶ 
Error  

˵
ʾ TypeName رϢ

Dim ArrayVar(4), MyType
NullVar = Null   '  Null ֵ

MyType = TypeName("VBScript")   '  "String"
MyType = TypeName(4)            '  "Integer"
MyType = TypeName(37.50)        '  "Double"
MyType = TypeName(NullVar)      '  "Null"
MyType = TypeName(ArrayVar)     '  "Variant()"
Ҫ
汾 2
