6
Answers

Concat 2 Strings to a local variablename which I can use lateron

Ask a question
Maik Brauer

Maik Brauer

13y
2.9k
1
Hi,
have for example 4 variables:
string myvar1="one"
string myvar2="two"
string myvar3="three"
string myvar4="four"

now I want to use the value from variable myvar3, somehow like this:
string mynewvar = "myvar"+"3"

now I would have the value "three" assigned to my new variable.
Is something like that possible?

Cheers,

Answers (6)