Can I declare a variable with an uncertainty number suffix?

Joined
Mar 5, 2024
Messages
2
Reaction score
0
Hi all,

I want to declare a variable whose name is decided by a variable value.
such as: if idx=0, then I need a new variable named var_00; if idx=1, then I need a new variable named var_01; ...; if idx=255, then I need a new variable named var_FF;
I don't know if it can be realized by '#' and '##', can anyone help me?
Thanks a lot!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,954
Messages
2,570,116
Members
46,704
Latest member
BernadineF

Latest Threads

Top