> For the complete documentation index, see [llms.txt](https://phpfreakbd.gitbook.io/licensepoint-lp-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://phpfreakbd.gitbook.io/licensepoint-lp-documentation/variables.md).

# Variables

{% hint style="info" %}
Variables make your program very secure and I highly recommend that you make use of them
{% endhint %}

**Initial Setup:**

**How to call a variable:**

{% hint style="info" %}
All variables called from the Var method are returned as strings and must be converted back to their original data type by you (unless the variable is a string) e.g.

{% code title="C#" %}

```csharp
Convert.ToInt32(api.captureVariable("Secure variable code"));
```

{% endcode %}
{% endhint %}

1. Get a variable from your program. This can be any value e.g. boolean, int, double, string, char&#x20;
2. Go to the variables page of the website and create a new variable with a name of your choice and the value of the variable from your program
3. Create the variable and go back to your program to replace the piece of data with the following code:&#x20;

   <pre class="language-csharp" data-title="C#"><code class="lang-csharp">api.captureVariable("Secure variable code");
   </code></pre>

**If you are using the InitializeForm method, variables will automatically be grabbed when the user logs in.**
