Board index » delphi » New Form Class with a new property

New Form Class with a new property

Maybe it is a silly question, but how can I create a new TForm class with a
published property that links the form to a DataSet ou DataSource?

Thanks
Erick

 

Re:New Form Class with a new property


You must create an new Component that inherited from TForm class and you
must insert into an TDataSource/TDataSet property in pubblished section
Example:

 TMyForm = class(TCustomform)
  published
    DataSource: TDataSource;
    DataSet: TDataSet;
end;

Bye

"Erick Sasse" <er...@NOSPAM.cadena.com.br> ha scritto nel messaggio
news:3dae19b6@newsgroups.borland.com...

Quote
> Maybe it is a silly question, but how can I create a new TForm class with
a
> published property that links the form to a DataSet ou DataSource?

> Thanks
> Erick

Other Threads