Hello, Henning Sittler! On 6/06/2002 11:56 AM -0400, you wrote in 
whole or part:
>How can I create an array and name it's columns (and rows for that 
>matter)?  I don't see this in the tango help or snippets, but I do 
>see that you can reference columns by name in an array, and I have 
>done so before.  I just don't know how to create one.
>
>Specifically, I want to name the columns of my array by the columns 
>names of the results columns returned from a search action.
>
>Thanks,


I'm not sure what "help" you are reading, but mine says how to create the array 
<@ASSIGN> example:
===

<@ASSIGN NAME="initValue" VALUE="1,2,3;4,5,6;7,8,9;a,b,c;d,e,f;g,h,i">
<@ASSIGN NAME="array2" VALUE="<@ARRAY ROWS='5' 
COLS='3' VALUE=@@initValue CDELIM=',' 
RDELIM=';'>">
<@ASSIGN NAME="foo5" SCOPE="user"
VALUE="@@array2[*,2]"> 

===

Set the row "0" with the column names.

<@ASSIGN NAME="array2[0,1]" VALUE="firstCol">
....

If you get a table with an SQL query, you can assign the <@VAR resultset> to your 
array and you get the column names in Row "0" as a bonus!

Beverly
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to