If I understand your question correctly, it is already done for you. When you assign the results of a search to an variable, that variable's row 0 contains the column names from the database. Therefore:
 

<@ASSIGN NAME="la_test" VALUE="@@resultset" SCOPE="LOCAL">

@@local$la_test[0,1]/@@local$la_test[0,2]/@@local$la_test[0,3]/@@local$la_test[0,4]

will give you the names of the first four columns from your search action.

Hope this helps,

Steve Smith

Skadt Information Solutions
Office: (519) 624-4388
GTA:    (416) 606-3885
Fax:    (519) 624-3353
Cell:   (416) 606-3885
Email:  [EMAIL PROTECTED]
Web:    http://www.skadt.com

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Henning Sittler
Sent: June 6, 2002 11:57 AM
To: Multiple recipients of list witango-talk
Subject: Witango-Talk:

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,


Henning Sittler
www.inscriber.com

Reply via email to