PDA

View Full Version : combine String value in command


ranxbar
08-05-2009, 02:59 PM
Hi there,

I'm trying to integrate a String value inside a command, and i'm not sure how the code is processed.

Assuming:

var dataGridName:String="dg_name";

what if i want to address the dataGrid via the variant "dataGridName", like this:

[dataGridName].dataprovider=arrayx;

how can I combine a string value with command?

senocular
08-05-2009, 03:08 PM
You can use getChildByName(dataGridName) or if dg_name is a variable within the current object, this[dataGridName]