2 variables combined to make 1

Post Reply
Darkhorse
Posts: 141
Joined: Wed Mar 09, 2011 1:25 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2003 2007 2010 2013

2 variables combined to make 1

Post 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
Last edited by Darkhorse on Tue Jul 16, 2013 1:02 pm, edited 1 time in total.
User avatar
Steve Rowe
Site Admin
Posts: 2464
Joined: Wed May 14, 2008 4:25 pm
OLAP Product: TM1
Version: TM1 v6,v7,v8,v9,v10,v11+PAW
Excel Version: Nearly all of them

Re: 2 variabbles combined to make 1

Post 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
Technical Director
www.infocat.co.uk
Darkhorse
Posts: 141
Joined: Wed Mar 09, 2011 1:25 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2003 2007 2010 2013

Re: 2 variabbles combined to make 1

Post 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:
User avatar
Steve Rowe
Site Admin
Posts: 2464
Joined: Wed May 14, 2008 4:25 pm
OLAP Product: TM1
Version: TM1 v6,v7,v8,v9,v10,v11+PAW
Excel Version: Nearly all of them

Re: 2 variabbles combined to make 1

Post by Steve Rowe »

Maybe you splet variables wrong in the serach box?
Technical Director
www.infocat.co.uk
Wim Gielis
MVP
Posts: 3241
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: 2 variabbles combined to make 1

Post by Wim Gielis »

Steve Rowe wrote:Maybe you splet variables wrong in the serach box?
LOL... look at the topic title :-)
Best regards,

Wim Gielis

IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Darkhorse
Posts: 141
Joined: Wed Mar 09, 2011 1:25 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2003 2007 2010 2013

Re: 2 variabbles combined to make 1

Post by Darkhorse »

shhh Wim Gielis :D ;)
Post Reply