# SetDualValue Method

## Overloads

| [SetDualValue(String, Double)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.SetDualValue.htm#Qlik_Engine_GenericVariable_SetDualValue_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.SetDualValue.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.SetDualValue.htm)

## SetDualValue(String, Double)

Sets the value of a dual variable.

### Declaration

```

          public void SetDualValue([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. |

### Implements

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

### Remarks

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