Variable within a variable?

Q&A about the latest versions
Post Reply
Andy360south
Posts: 8
Joined: Thu Oct 08, 2020 11:54 am

Hi,

Wondering if it's possible to put a variable inside another so that I can dictate which variable gets changed. (all will become clear, i hope!)

So I have 4 text variables:

comp1
comp2
comp3
comp4

When I click a hotspot, I want to change text associated with one of those variables (using the $(hd) of a hotspot, that I've already predetermined (between 1 and 4)

so I have a number variable
var_whichcomp - which I would like to use to drive which of the 4 variables above gets its text changed.

I've tried:
$(*comp$(*var_whichcomp)) - and that just gives me a black screen, so am assuming an error.

Is there any way to combine 2 variables into 1?

Cheers!
Andy.
Post Reply