Page 1 of 1

2 variables combined to make 1

Posted: Wed Jul 03, 2013 10:00 pm
by Darkhorse
Hi all

is there a code that allows me to combine avariable value with a string to make a variable name,

i.e

i1 = Test
c= 1


cellputn("testcube", 'I'|numbertostring(c),Tester)

I want to turn this:
'I'|numbertostring(c)
into this
i1

in excel this would be indirect what is this in TM1 TI code ?

thanks all

Re: 2 variabbles combined to make 1

Posted: Wed Jul 03, 2013 10:28 pm
by Steve Rowe
http://www.tm1forum.com/viewtopic.php?f=21&t=4921

or search for indirect variables! Search box is in the top right. :D

Re: 2 variabbles combined to make 1

Posted: Thu Jul 04, 2013 6:36 pm
by Darkhorse
Lol Steve ta m8 I did actually search for that weirdly that didn't pop up :o but I thought it had to be in the system as its a major player in making extremely dynamic programming,

For those that find this post and can't be bothered clicking the link above.. It's EXPAND() :twisted: :lol:

Re: 2 variabbles combined to make 1

Posted: Thu Jul 04, 2013 7:56 pm
by Steve Rowe
Maybe you splet variables wrong in the serach box?

Re: 2 variabbles combined to make 1

Posted: Fri Jul 05, 2013 12:25 pm
by Wim Gielis
Steve Rowe wrote:Maybe you splet variables wrong in the serach box?
LOL... look at the topic title :-)

Re: 2 variabbles combined to make 1

Posted: Thu Jul 11, 2013 1:16 pm
by Darkhorse
shhh Wim Gielis :D ;)