Combine number variable with string variable - Forum

Forum Navigation
You need to log in to create posts and topics.

Combine number variable with string variable

Hi there.

How can I merge a numeric counter variable with a string variable?

For example:

SetVar [counter] 0
SetVar [employee] "man[counter]"
Math "[counter]+1" -1 [counter]

 

@tilesoft

Take a look at the SetCompVar command in the help file here ...

https://webhelp.visualneo.com/Variables.html

... it includes an example so ...

SetVar [index] 1
SetCompVar [greeting[index]] "Hey"
AlertBox "Variable value:" "[greeting1]" ""

 

tilesoft has reacted to this post.
tilesoft