IT. Expert System.

VBS

TypeName()


Description

The TypeName() function returns the subtype of a specified variable.

This function has the form:

TypeName(varname)
Parameter Description
varname (required) A variable name

Return Values

The following table lists the possible return values:

Data Type Description
   
Byte Indicates a byte value
Integer Indicates an integer value
Long Indicates a long integer value
Single Indicates a single-precision floating-point value
Double Indicates a double-precision floating-point value
Currency Indicates a currency value
Decimal Indicates a decimal value
Date Indicates a date or time value
String Indicates a character string value
Boolean Indicates a boolean value; True or False
Empty Indicates an unitialized variable
Null Indicates no valid data
<object type> Indicates the actual type name of an object
Object Indicates a generic object
Unknown Indicates an unknown object type
Nothing Indicates an object variable that doesn't yet refer to an object instance
Error Indicates an error

Examples

The following example shows the basic use of this function:

x="Hello World!"
Msgbox(TypeName(x))
x=4
Msgbox(TypeName(x))
x=4.675
Msgbox(TypeName(x))
x=Null
Msgbox(TypeName(x))
x=Empty
Msgbox(TypeName(x))
x=True
Msgbox(TypeName(x))

This produces the following result (each line in a separate pop-up message box):

String
Integer
Double
Null
Empty
Boolean

Miscellaneous Information

Supported in Version: 2.0


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 3606 / . Delta: 0.02788 с