O'Reilly logo

VB.NET Language in a Nutshell, Second Edition by Steven Roman PhD, Paul Lomax, Ron Petrusha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

TypeName Function

Class

Microsoft.VisualBasic.Information

Syntax

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

Rules at a Glance

  • If varname is declared as type Object, it returns the data subtype that has been assigned to it.

  • varname returns the data type name of all value types. It returns Nothing for uninitialized reference types and the data ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required