ActiveReports 12
Val(Object) Method

GrapeCity.ActiveReports.v12 Assembly > GrapeCity.Enterprise.Data.VisualBasicReplacement Namespace > Conversion Class > Val Method : Val(Object) Method
Required. Any valid String expression, Object variable, or Char value. If expression is of type Object, its value must be convertible to String or an System.ArgumentException error occurs.
Returns the numbers contained in a string as a numeric value of appropriate type.
Syntax
'Declaration
 
Public Overloads Shared Function Val( _
   ByVal expression As Object _
) As Double
public static double Val( 
   object expression
)

Parameters

expression
Required. Any valid String expression, Object variable, or Char value. If expression is of type Object, its value must be convertible to String or an System.ArgumentException error occurs.

Return Value

Returns the numbers contained in a string as a numeric value of appropriate type.
See Also

Reference

Conversion Class
Conversion Members
Overload List