Page 1 of 1

Variables Tricks

Posted: Tue Sep 22, 2026 9:53 am
by BenR
When creating multiple variables of the same type you can create several at once by adding the names separated by commas in the create a new variable dialogue.

ss1.jpg
ss1.jpg (35.24 KiB) Viewed 113 times

The initial value entry will assign the same default value to all of the created variables. It is highly recommended to always assign a known value to a variable before reading a variable back in your program so assigning a meaningful initial value is very good practise.

Providing clear and meaningful names for your variables will help in the long run when it comes to coding and debugging the functionality. An optional description can be added to each variable to provide more details about it.

Variables that are unused in your project will appear greyed out in the Variables tab of the Project Explorer window.

ss2.png
ss2.png (7.79 KiB) Viewed 113 times

Any unused variables can be automatically deleted by right clicking the Constants or Variables headings and selecting "Delete unused".

ss3.png
ss3.png (4.9 KiB) Viewed 113 times

References to a specific variable can be searched by right clicking a variable and selecting "List occurrences".

ss4.png
ss4.png (8.97 KiB) Viewed 113 times