VBScript TypeName 函数

定义和用法

TypeName 函数可指定变量的子类型。

TypeName 函数可返回的值:

ဖော်ပြ
Byte 字节值
Integer 整型值
Long 长整型值
Single 单精度浮点值
Double 双精度浮点值
Currency 货币值
Decimal ဆယ်ကျပ်
Date နှစ် သို့မဟုတ် အချိန်
String စကာတင်
Boolean Boolean အတ္ထုပ်
Empty မစီတင်ထားသေးသည်
Null အခြေခံ အချက်အလက် မရှိ
<object type> လက်ရှိ အားကစာ အမည်
Object အထက်အရာ
Unknown သိရခြင်း မရှိသေးသေးသည်
Nothing ဘဝမြင်း အား ချွတ်သွားသော အားကစာ
Error အမှား

အက္ခရာ

TypeName(varname)
ပါဝင်သည် ဖော်ပြ
varname လိုအပ်သည်။ လိပ်၏ အမည်

အကျိုးစား

dim x
x="Hello World!"
document.write(TypeName(x))
x=4
document.write(TypeName(x))
x=4.675
document.write(TypeName(x))
x=Null
document.write(TypeName(x))
x=Empty
document.write(TypeName(x))
x=True
document.write(TypeName(x))

ထုတ်သွင်းခြင်း

String
Integer
Double
Null
Empty
Boolean