<@VAR NAME=@@user$affiliate[1,2] SCOPE=domain> Is ambiguous. That's why you need long hand.
It can be interpreted as to return a variable named the value of the cell [1,2] of an array user$affiliate but what you mean to say is that you want to return the cell [1,2] from the array in the variable named user$affiliate shorthand will interpret the first way, long hand the second. (I believe, without testing) Robert -----Original Message----- From: Wayne Irvine [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2008 2:27 AM To: [email protected] Subject: Witango-Talk: Assigning array to a Var whose name is a Var. I am looking to assing an array to a var. Easy enough: <@ASSIGN NAME=VarName VALUE=@@local$resultset SCOPE=domain> Trouble is, the VarName is also a variable: <@ASSIGN NAME=@@user$affiliate VALUE=@@local$resultset SCOPE=domain> This seems to work and calls @@user$affiliate show the array. But if I want to access one element of the array: <@VAR NAME=VarName[1,2] SCOPE=domain> Works But <@VAR NAME=@@user$affiliate[1,2] SCOPE=domain> Doesn't. Where am I going wrong? Wayne Irvine Byte Services Pty Ltd http://www.byteserve.com.au/ [EMAIL PROTECTED] Ph 02 9960 6099 Mob 0409 960 609 Fax 02 9960 6088 ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
