VB.NET Language in a Nutshell

   
ValDec Function

Class

Microsoft.VisualBasic.Conversion

Syntax

ValDec( expression )

expression (required; String or Char)

Any string representation of a number

Return Value

A Decimal able to hold the number contained in expression

Description

Converts a string representation of a number into a Decimal

Rules at a Glance

Programming Tips and Gotchas

If you are developing an international application, you should use the CDec function to convert strings to numbers, since CDec can recognize all decimal separators.

VB.NET/VB 6 Differences

The ValDec function is new to VB.NET.

   

Категории