Paul Andrews wrote:>
>
>
> > so I tried
> > myPanel set title("This is the new title" );
> >
> > I didn't really expect it to work
> > I got this error
> > Error: Syntax error: expecting rightbrace before set.
> >
> > How do I do this ?
>
> myPanel.title="This is the new title";
>
> What you are seeing is the syntax for a setter function.
>
> Paul
Ok thanks, now I faintly remember that the getter makes the simple a=b
syntax possible. But I thought the whole idea was so the property could
be private. The title is public . .
>
>