# SetDualValueAsync Method

## Overloads

| [SetDualValueAsync(String, Double)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.SetDualValueAsync.htm#Qlik_Engine_GenericVariable_SetDualValueAsync_System_String_System_Double_) |  | Sets the value of a dual variable. |
| --- | --- | --- |
| [SetDualValueAsync(AsyncHandle, String, Double)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.SetDualValueAsync.htm#Qlik_Engine_GenericVariable_SetDualValueAsync_Qlik_Engine_AsyncHandle_System_String_System_Double_) |  | Sets the value of a dual variable. |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.SetDualValueAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.SetDualValueAsync.htm)

## SetDualValueAsync(String, Double)

Sets the value of a dual variable.

### Declaration

```

          public Task SetDualValueAsync([QixName("qText")] string text, [QixName("qNum")] double num)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | text | String representation of a dual value. Set this parameter to "", if the string representation is to be Null. |
| System.Double | num | Numeric representation of a dual value. |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task |  |

### Implements

[IGenericVariable.SetDualValueAsync(String, Double)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.SetDualValueAsync.htm#Qlik_Engine_IGenericVariable_SetDualValueAsync_System_String_System_Double_)

### Remarks

These changes are not persistent. They only last the duration of the engine session.

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.SetDualValueAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.SetDualValueAsync.htm)

## SetDualValueAsync(AsyncHandle, String, Double)

Sets the value of a dual variable.

### Declaration

```

          public Task SetDualValueAsync(AsyncHandle asyncHandle, [QixName("qText")] string text, [QixName("qNum")] double num)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| System.String | text | String representation of a dual value. Set this parameter to "", if the string representation is to be Null. |
| System.Double | num | Numeric representation of a dual value. |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task |  |

### Implements

[IGenericVariable.SetDualValueAsync(AsyncHandle, String, Double)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.SetDualValueAsync.htm#Qlik_Engine_IGenericVariable_SetDualValueAsync_Qlik_Engine_AsyncHandle_System_String_System_Double_)

### Remarks

These changes are not persistent. They only last the duration of the engine session.