As a follow up…

This code makes an assignment:
<@ASSIGN NAME="progList" VALUE="@@request$progListUnfiltered[<@VAR 
local$unfpCount>, *]" >

This code doesn’t:
<@ASSIGN NAME="progList[<@VAR local$progCounter>,*]" 
VALUE="@@request$progListUnfiltered[<@VAR local$unfpCount>, *]" >

Can I not assign one row of one array to another row of another array?

-Doug

From: Doug Holubek [mailto:[email protected]]
Sent: Monday, April 14, 2014 2:31 PM
To: [email protected]
Subject: TeraScript-Talk: question about arrays in WiTango

Does Witango support doing something like this?:

Suppose I have a two dimensional array (from SQL result set) as a simple 
example:
resultSet =          [[ 1, a, a]
[ 2, b, b]
[ 3, c, c]]

I want perform some logic where I filter which rows I eventually want.  Once I 
do that I want to create a “result” array.  On each For loop iteration I would 
like to optionally assign the result array an row

loop over <@numrows resultSet>
                IF some filtering logic
<@assign name=’resultArray’ value=’<@array row=@loopIndex>’>
End loop

Basically, can the array assignment be dynamic?


Doug Holubek
Senior Software Engineer
[cid:[email protected]]
604 Courtland Street, Suite 300
Orlando, FL 32804
407.835.9899 ext. 202
407.835.9838 Fax
www.eschoolsolutions.com<http://www.eschoolsolutions.com>


________________________________
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.

<<inline: image001.jpg>>

Reply via email to