kcsahu777
13 years agoContributor
How to refer object property by using a variable?
How to refer object name that is stored in a variable?
Suppose the property "clearer" is referred as below
TradeDataGrid.FlexObject.dataProvider.list.source.item(row).clearer
But if the name is stored in a variable say v_clr="clearer"
I want to refer it something like below, which is not working now
TradeDataGrid.FlexObject.dataProvider.list.source.item(row).v_clr
Error throwing as below
Object doesn't support property or method:v_clr
Had this been worked, I could reduce several lines of code .
Suppose the property "clearer" is referred as below
TradeDataGrid.FlexObject.dataProvider.list.source.item(row).clearer
But if the name is stored in a variable say v_clr="clearer"
I want to refer it something like below, which is not working now
TradeDataGrid.FlexObject.dataProvider.list.source.item(row).v_clr
Error throwing as below
Object doesn't support property or method:v_clr
Had this been worked, I could reduce several lines of code .