Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic arrays

Status
Not open for further replies.

balajee

Programmer
Joined
Jun 29, 2000
Messages
134
Location
NZ
Hi

I am reading a text file from where I get string variables. I would like create arrays and name them with these string variables. I am also reading integer values which would used to define the size of arrays. Example

string1="Array1"
string2="Array2"
integer1= Imax
integer2= Jmax

I would like to create arrays like Array1(Imax,Jmax) and Array2(Imax,Jamx).

How do I do this?

Thanks,
 
Basically... um, you don't.

How would you ever use[i/] the darned arrays if you "created" them?
 
If you are into object-oriented programming, you could write a class that has both storage facilities and a name property. I think that comes closest to the thing you want.

Best regards
 
Thanks for your suggestions. Is there not a work around way for this other than writing a class?
 
You might try using the Dictionary Object as your storage structure. To provide access to the Dictionary object, include a reference to the Microsoft Scripting Runtime.

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top