I did test the example I provided and it does work. I’m testing on TeraScript 
7, but it should work in 6 as well. It also works in v8.



This was my entire test TML:



<@FOR START="1" STEP="1" STOP="5">

<@ASSIGN NAME="Level_data<@CURROW>" VALUE="<@ARRAY value='<@RANDOM>;'>" 
SCOPE="User">

</@FOR>



<@FOR START="1" STEP="1" STOP="5">

<@CURROW>: <@VAR user$LEVEL_data<@CURROW>[1,1]> <br/>

</@FOR>



Robert



From: [email protected] [mailto:[email protected]]
Sent: Monday, January 19, 2015 11:25 AM
To: [email protected]
Subject: RE: TeraScript-Talk: Use of variable in a variable name does not work



Hello Robert,



Your solution, unfortunately, does not work. :(

In the programmer manual it is mentioned that you can use Meta tags in assign 
tag for both name and value.

And that you can use meta tags in application file locations.







I used the constructed variable name in TANGO 2000 and it worked fine and was a 
powerful option.

Last year we moved to the terascript 6.0.

Is there a possibility that this function will be back in version 8 of 
terascript?



Thanks and best regards,

Joop



From: Robert Shubert [mailto:[email protected]]
Sent: Monday, January 19, 2015 16:05
To: [email protected] <mailto:[email protected]>
Subject: RE: TeraScript-Talk: Use of variable in a variable name does not work



Joop,



I’m quite surprised to hear that syntax worked in any previous versions, and if 
it did, I’m not sure when it changed.



When you have constructed variable names like that, you usually have to use the 
longhand @VAR, rather than the @@ shorthand.



This should work:



<@FOR START="1" STEP="1" STOP="@@USER$child5">

<@VAR user$LEVEL_data<@CURROW>[<@CURROW>,4]> / etc

</@FOR>



Robert



From: [email protected] <mailto:[email protected]>  
[mailto:[email protected]]
Sent: Monday, January 19, 2015 6:03 AM
To: [email protected] <mailto:[email protected]>
Subject: TeraScript-Talk: Use of variable in a variable name does not work



I can declare a variable like this :

Action:

<@FOR START="1" STEP="1" STOP="5">

<@ASSIGN NAME="Level_data<@CURROW>" VALUE="@@Resultset" SCOPE="User">

                </@FOR>



But when I want to display the variable by means of a for next loop and use the 
counter to select the right variable it does not work.

<@FOR START="1" STEP="1" STOP="@@USER$child5">

@@user$LEVEL_data<@CURROW>[<@CURROW>,4] / etc

</@FOR>

It displays :    the current row number [current Row number,4]



In earlier versions of Tango it was working fine.

My version of WITANGO is version 6 and WITANGO development studio 6.0.7



Can anyone explain what’s wrong or is it solved in version 7 of terascript.



Thanks

Joop



  _____

To unsubscribe from this list, please send an email to [email protected] 
<mailto:[email protected]>  with "unsubscribe terascript-talk" in the 
body.



  _____

To unsubscribe from this list, please send an email to [email protected] 
<mailto:[email protected]>  with "unsubscribe terascript-talk" in the 
body.



  _____

To unsubscribe from this list, please send an email to [email protected] 
<mailto:[email protected]>  with "unsubscribe terascript-talk" in the 
body.




----------------------------------------

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe terascript-talk" in the body.

Reply via email to