# CreateVariable Method

## Overloads

| [CreateVariable(String)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.CreateVariable.htm#Qlik_Engine_IApp_CreateVariable_System_String_) |  | Creates a variable. |
| --- | --- | --- |

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

## CreateVariable(String)

Creates a variable.

### Declaration

```

          [Obsolete("Use _Doc::CreateVariableEx_ method instead")]
bool CreateVariable([QixName("qName")] string name)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | name | Name of the variable. Variable names are case sensitive. |

### Returns

| Type | Description |
| --- | --- |
| System.Boolean |  |

### Remarks

The operation is successful if qReturn is set to true.