--- In [email protected], "Charlie Hubbard" 
<[EMAIL PROTECTED]> wrote:
>
> Ok, I think I've got a pretty difficult question here.  I want to 
the setter
> method given a string containing the name of a property.  With 
normal
> methods I can always do something like obj.myFunction to get a 
reference to
> that function, then I can invoke that function with a func.call().  
However,
> if you do obj.someProperty that calls the get method.   I already 
tried obj[
> propertyName ] which returned null so that's out.
> 
> It's almost like you need another language feature.  obj->property= 
and
> obj->property for ( reference to setter and getter of this 
property).

obj['property']= 'foo'

should do it.  Since all setter methods are actually setting 
something, you can't just call the method without providing a value.

HTH;

Amy

Reply via email to