ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Data.VBFunctionLib Assembly / GrapeCity.Enterprise.Data.VisualBasicReplacement Namespace / Conversion Class / Val Method / Val(String) Method
Required. Any valid String expression, Object variable, or Char value. If inputStr is of type Object, its value must be convertible to String or an System.ArgumentException error occurs.

In This Topic
    Val(String) Method
    In This Topic
    Returns the numbers contained in a string as a numeric value of appropriate type.
    Syntax
    'Declaration
     
    Public Overloads Shared Function Val( _
       ByVal inputStr As String _
    ) As Double
    public static double Val( 
       string inputStr
    )

    Parameters

    inputStr
    Required. Any valid String expression, Object variable, or Char value. If inputStr 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