YouTip LogoYouTip

Func Typename

# VBScript TypeName Function * * Complete VBScript Reference Manual](#) * * * The TypeName function returns the subtype of a specified variable. The TypeName function returns the following values: * Byte - represents a byte value * Integer - represents an integer value * Long - represents a long integer value * Single - represents a single-precision floating-point value * Double - represents a double-precision floating-point value * Currency - represents a currency value * Decimal - represents a decimal value * Date - represents a date or time value * String - represents a string value * Boolean - represents a Boolean value, True or False * Empty - represents an uninitialized variable * Null - represents no valid data * - represents the actual object type name * Object - represents a generic object * Unknown - represents an unknown object type * Nothing - represents an object variable that does not yet reference an object instance * Error - represents an error ### Syntax TypeName(varname) | Parameter | Description | | :--- | :--- | | varname | Required. The name of the variable. | ## Example ## Example 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)) The output of the above example: String Integer Double Null Empty Boolean [Try it Β»](#) * * Complete VBScript Reference Manual](#)
← Func VartypeFunc Setlocale β†’

YouTip © 2024-2026 | Home | Learn Technology, Build Dreams!

All content is for educational and learning purposes only.