TypeName Function; VarType Function/text/sbasic/shared/03103600.xhpTypeName functionVarType functionBasic Variable Type constants
TypeName Function; VarType Function
Returns text or a numeric value that contain type information for a variable.TypeName (Varname As Variant) As StringVarType (Varname As Variant) As IntegerA text for TypeName suffixed with '()' for arrays.An integer for VarType. The number 8192 is added to the returned value for arrays of type VarType.Varname: The variable name that you want to determine the type of.The following values are returned:
TypeName valuesNamed constantVarType valuesVariable type…()8192Array of variablesBoolean11Boolean variableByte17Byte variableDateV_DATE7Date variableCurrencyV_CURRENCY6Currency variableDoubleV_DOUBLE5Double-precision floating-point variableError11Error type variableIntegerV_INTEGER2Integer variableLongV_LONG3Long integer variableObject9Object variableSingleV_SINGLE4Single-precision floating-point variableStringV_STRING8String variableVariant12Variant variable (can contain all types specified by the definition)EmptyV_EMPTY0Uninitialized Variant variableNullV_NULL1No valid data