# SetStringValue method

Sets a string value to a variable.

Information note

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

## Parameters

| Name | Description | Mandatory | Type |
| --- | --- | --- | --- |
| qVal | Value of the variable. The string can contain an expression. | Yes | String |

## See also

[Update the properties of a variable](https://help.qlik.com/en-US/sense-developer/May2026/csh/engineapi/update-property-variable)