macromedia.flash.actionscript
[Top] [All Lists]

construct Array name dynamically

Subject: construct Array name dynamically
From: "luciewong" <webforumsuser@xxxxxxxxxxxxxx>
Date: Sun, 31 Aug 2008 11:01:58 +0000 (UTC)
Newsgroups: macromedia.flash.actionscript

Sorry guys, but I must post my message in parts to find out, where in my text 
is a >censored word<
 I cannot post in one.

 So part 1> hope no censored word>

 Hi,
 I have to construct an Array name dynamic, consisting of 
 Database "Table" + Database "Column name".
 Data comes in with LV.

 I do this like:
 var theTable:String = Table;//<<from LV
 var theColumn:String = Column; ;//<<from LV

 Now I create the Array:
 _root[theTable+[theColumn]+"_array"] = new Array();//<

 No problem so far, works fine. I push values into this new Array.

 But?..
 if the Table or the Column name contains an >ampersand< then it hurts.

 >>end part 1


<Prev in Thread] Current Thread [Next in Thread>
  • construct Array name dynamically, luciewong <=