[lazarus] dealing with objects' properties

dvortex dvortex at netcourrier.com
Tue May 2 10:20:07 EDT 2000



I was waking up this morning after a short night of sleep, and i realized
that maybe i should modify the TObject code and add this:

 Procedure TObject.SetProperty(PropertyName).AsString
                                            .AsFloat
                                            .AsInteger

(How can i code something like this by the way ?)

and maybe 
 Function TObject.GetPropertList : TStringList;

?

What do you think ?
that would allow to make component coding a lot easier, don't you think ?

(my idea this morning, please let me know if this is completly stupid
:o) it's the morning after all :o)

Thanks
Jok







More information about the Lazarus mailing list