Page 1 of 1 1
Topic Options
#150138 - 2005-10-17 09:24 PM Extending a variable name
xpanmanx Offline
Starting to like KiXtart

Registered: 2002-07-08
Posts: 108
Loc: St. Louis MO USA
Here's one where I don't even know how to begin...

I want to DIM a new variable by appending a string to the arse end of an existing variable's name.

Example: $x would begat $x_array .



If the answer is already here somewhere just slap my hand and send me on my way with some helpful search suggestions

Top
#150139 - 2005-10-17 09:51 PM Re: Extending a variable name
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Execute() it.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#150140 - 2005-10-18 09:29 AM Re: Extending a variable name
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Quote:

Execute() it.




However be aware that you can only create global variables this way. It is not possible to create dynamic variable names with a local scope.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1046 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.051 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org