Hi together.

I'm very new here and i have a question:

I would like to create an var array (in lite-c gamestudio a8) that looks like this:
var agent[5] = (1,2,3,4,5)

But i would lineto exchange the [5] with a var like rat.
Not
var agent[5]
But
var agent[rat]

Rat should be changeble douring the programm run with a button or else.


Please help me, im searching for days now