# CreateVariable Method

## Overloads

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

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

## CreateVariable(String)

Creates a variable.

### Declaration

```

          [Obsolete("Use _Doc::CreateVariableEx_ method instead")]
public 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 |  |

### Implements

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

### Remarks

The operation is successful if qReturn is set to true.