Are you able to use the square brackets syntax for accessing  
properties ?
This should work if your data objects are type object or are dynamic (?)

var selectedGrowerAddress2:String =
StringUtil.trim(String 
(event.currentTarget.growerSearchGrid.selectedItem["ADDRESS_LINE#2"]));


> My client's database contains hash symbols as part of the field name 
> (s).
> So a line like:
>
> var selectedGrowerAddress2:String =
> StringUtil.trim(String 
> (event.currentTarget.growerSearchGrid.selectedItem.ADDRESS_LINE#2));
>
> throws a compiler syntax error: expecting a semicolon before the 2.
>
> How can I get around this please?
>
> No, renaming the client's daatabase fields is NOT an option. Their
> main app uses this. My bespoke Flex app runs parallel to it.

Reply via email to