Share this page

# lr.get_attrib_long

Returns a long integer type value of an argument passed to the script run.

## C#

    int lr.get_attrib_long( string argument_name );

## VB.NET

    Function lr.get_attrib_ByVal( ByVal argument_name As String ) as Long

Command Line Parsing Functions

## Arguments

Name | Comments
--- | ---
argument_name | The name of an argument whose value can be interpreted as a long integer.

The lr.get_attrib_long function returns the value of a long integer argument 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 specified argument. If the argument does not exist or if its value is not consistent with the long data type, returns -1.

## Parameterization

Standard parameterization is not available for this function.

## Example

The following example retrieves the loop value as a long expression, checks its validity, and sends it to the output.

    long loop=lr.get_attrib_long("loop");if(loop==-1)  lr.output_message("Failed to get the loop from the command line");else  lr.output_message("Loop = "+loop);

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