BLANK, NULL AND BLACK

ClassicASP VarType Number

ASP2017. 8. 10. 17:52


ClassicASP 에서 자료 타입을 알아 볼 수 있는 함수는 VarType(변수) 이다.

결과는 숫자로 반환한다. 아래 표를 참고하자. (Value항목의 값으로 반환)



ConstantValueDescription
vbEmpty 0 Empty (uninitialized)
vbNull 1 Null (no valid data)
vbInteger 2 Integer
vbLong 3 Long integer
vbSingle 4 Single-precision floating-point number
vbDouble 5 Double-precision floating-point number
vbCurrency 6 Currency
vbDate 7 Date
vbString 8 String
vbObject 9 Automation object
vbError 10 Error
vbBoolean 11 Boolean
vbVariant 12 Variant (used only with arrays of Variants)
vbDataObject 13 A data-access object
vbDecimal 14 Decimal Value
vbByte 17 Byte
vbLongLong 20 LongLong integer (64 bit)
vbArray 8192 Array

참고: https://stackoverflow.com/questions/3281355/get-the-type-of-a-variable-in-vbscript