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

Conversion

Data Type Conversion

Element

Description

CBool function

Converts an expression to a Boolean data type

CByte function

Converts an expression to a Byte data type

CChar function

Converts a string expression to a Char data type

CDate function

Converts an expression to a Date data type

CDbl function

Converts an expression to a Double data type

CDec function

Converts an expression to a Decimal data type

CInt function

Converts an expression to an Integer data type

CLng function

Converts an expression to a Long data type

CObj function

Converts an expression to an Object data type

CSng function

Converts an expression to a Single data type

CStr function

Converts an expression to a String data type

CType function

Converts an expression to any valid data type, structure, object type, or interface

DateValue function

Converts the string representation of a date to a date

DirectCast function

Converts a variable to its runtime type

Option Strict statement

Determines whether narrowing operations are allowed

Str function

Converts a numeric value to a string

TimeValue function

Converts a string representation of time to a Date data type

Val function

Converts a numeric string to a number

ValDec function

Converts a numeric string to a Decimal data type

Other Conversion

Element

Description

ErrorToString method

Returns the descriptive error message corresponding to a particular error code

Fix function

Returns the integer ...

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