Share this page

# lr.empty

Returns a Variant whose value is Empty.

## C#

    int lr.empty( object pVariant );

## VB.NET

    Function lr.empty( ByRef pVariant As Object ) as Integer

Argument Functions

## Arguments

Name | Comments
--- | ---
pVariant | The output argument for the Empty Variant

The lr.empty function sets the pVariant argument to the value Empty.

A transaction in which lr.empty is called does not appear in Controller in the Transaction Status box. It is ignored in the count of passed and failed transactions.

If lr.empty is called several times in the same script, whether in different actions or different iterations, it is the empty status of the last call that determines the status of the Vuser group running the script. The Controller Scenario Groups Status box displays the status. It is the column in which the group appears after the run stops.

## Return Values

This function always returns zero.

## Parameterization

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

## Example

The following example returns true when the variant value is not null.

      if(!ObjectCheck(lr.empty))   lr.output_message("lr.empty is null object");  else   lr.output_message("lr.empty is "+lr.empty.ToString()); public bool ObjectCheck(object obj){ if(obj==null)   return false; else   return true;}

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: