--- In [email protected], Brandon Krakowsky <[EMAIL PROTECTED]> 
wrote:
>
> Amy:
> 
> It seems easier this way since I'm using a dataprovider which is 
updated often, changing the icon.  Right now I'm using a switch 
statement which tests "value.icon" and returns the proper embedded 
image class name.  I'm confused as to why I can't convert the String 
the "image1" to Class image1.  Seems easy enough, but nothing works.

That's what iconFunctions are for.

But you could try 

img.source = this[value.icon];

HTH;

Amy

Reply via email to