Share this page

# lr.get_attrib_double

Returns a double type value of a argument passed to the script run.

## C#

    double lr.get_attrib_double( string argument_name );

## VB.NET

    Function lr.get_attrib_double( ByVal argument_name As String    ) as Double

Command Line Parsing Functions

Name | Comments
--- | ---
argument_name | The name of a parameter that can be interpreted as a double value.

The lr.get_attrib_double function returns the value of an argument of type double precision floating point that was passed to the run of the script.

To view the arguments passed to a script run, see mdrv_cmd.txt in the script folder.

## Return Values

The value of the argument. If the argument does not exist or if its value is not consistent with the double data type, returns -1.

## Parameterization

You cannot use standard parameterization for any arguments in this function.

## Example

The following example retrieves the time as a double precision expression, checks its validity, and sends it to the output.

Copy code

    double time=lr.get_attrib_double("time");
      if(time==-1)
        lr.output_message("Fail to get the time from the command line");
      else
        lr.output_message("Time = " + time);

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: