Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Naming a variable with another variable

Author
Message
Ramsy
15
Years of Service
User Offline
Joined: 4th Jun 2009
Location: Melbourne
Posted: 10th Oct 2009 02:05 Edited at: 10th Oct 2009 10:02
I'm really new to this but I was wondering if I can name several variables or arrays using another changing variable.

Here's what I want to try.


This way I can name 20 arrays quickly. i.e Block1, Block2........Block20. Later I will have to initialize all of them as well so I really want to avoid entering the same array name 20 times with only one number different.
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 10th Oct 2009 12:07
No, but you can make a multi-dimensional array to hold all the data you need in one array.



Login to post a reply

Server time is: 2024-11-25 01:49:09
Your offset time is: 2024-11-25 01:49:09