# GetVariableByName Method

## Overloads

| [GetVariableByName(String)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.GetVariableByName.htm#Qlik_Engine_IApp_GetVariableByName_System_String_) |  | Gets the handle of a variable. |
| --- | --- | --- |

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

## GetVariableByName(String)

Gets the handle of a variable.

### Declaration

```

          GenericVariable GetVariableByName([QixName("qName")] string name)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | name | Name of the variable. |

### Returns

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