Name

TypeName Function — Microsoft.VisualBasic.Information

Synopsis

TypeName(varname)
varname required; String literal

Name of a variable

Return Value

String

Description

Returns a string giving data type information about varname. The possible return values are:

String returned

Variable contents

Boolean

8-bit True or False value type

Byte

8-bit binary value type

Char

16-bit character value type

Date

64-bit date and time value type

DBNull

Reference type indicating missing or nonexistent data

Decimal

96-bit fixed point numeric value type

Double

64-bit floating point numeric value type

Error

Error object

Integer

32-bit integer value type

Long

64-bit integer value type

Nothing

Object variable with no object currently assigned to it, uninitialized string, or undimensioned array

Object

Reference type pointing to an unspecialized object

Short

16-bit integer value type

Single

32-bit floating point numeric value type

String

Reference type pointing to a string of 16-bit characters

<objectclass>

Reference type pointing to a specialized object created from class <objectclass>

<structure>

A variable created from a structure or user-defined type named structure

<typename>( )

Dimensioned array

Get VB.NET Language Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.