Data Types

Visual Basic .NET provides a broad range of data types that you can use when defining variables and working with data. These data types are slightly different from those provided by VB6 or VBScript. Table 7.1 lists the available types, along with the corresponding .NET Framework data types (each .NET language, such as Visual Basic .NET or C# .NET, maps its specific data types to data types provided by the .NET Framework).

TIP

Note that the VB6 Currency data type is gone. Currency was a strange type: In order to avoid some round-off errors, Visual Basic multiplied the data values you entered by 10,000 for storage in memory and then divided by 10,000 again for display. In the .NET Framework, use the Decimal type instead, if you want ...

Get ASP.NET Developer's JumpStart 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.