Permalink
Fetching contributors…
Cannot retrieve contributors at this time
70 lines (59 sloc) 2.89 KB
title ms.custom ms.date ms.prod ms.reviewer ms.suite ms.technology ms.topic dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author translation.priority.ht
Type Conversions in Visual Basic
2015-07-20
.net
devlang-visual-basic
article
VB
conversions, type
data types [Visual Basic], changing
variables [Visual Basic], changing data type
type conversion
conversions, data type
changing data types
data type conversion
1cdacd21-ba31-4b62-b5be-395e41eeaa17
13
dotnet-bot
dotnetcontent
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

Type Conversions in Visual Basic

The process of changing a value from one data type to another type is called conversion. Conversions are either widening or narrowing, depending on the data capacities of the types involved. They are also implicit or explicit, depending on the syntax in the source code.

In This Section

Widening and Narrowing Conversions
Explains conversions classified by whether the destination type can hold the data.

Implicit and Explicit Conversions
Discusses conversions classified by whether [!INCLUDEvbprvb] performs them automatically.

Conversions Between Strings and Other Types
Illustrates converting between strings and numeric, Boolean, or date/time values.

How to: Convert an Object to Another Type in Visual Basic
Shows how to convert an Object variable to any other data type.

Array Conversions
Steps you through the process of converting between arrays of different data types.

Related Sections

Data Types
Introduces the [!INCLUDEvbprvb] data types and describes how to use them.

Data Types
Lists the elementary data types supplied by [!INCLUDEvbprvb].

Troubleshooting Data Types
Discusses some common problems that can arise when working with data types.