 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Ivano P Mucci Guest
|
Posted: Mon Aug 11, 2003 6:17 pm Post subject: How to make designer see a datasource property on mycomponen |
|
|
Hi, I have a component that has a property DataSource, it is created
internaly.
I need a way to choose that DataSource in DBEdit control as its Datasource.
is it possible?
thanks,
Ivano P Mucci
|
|
| Back to top |
|
 |
D Whaley Guest
|
Posted: Mon Aug 11, 2003 6:39 pm Post subject: Re: How to make designer see a datasource property on mycomp |
|
|
I think you will have to make the datasource's Owner, the form.
|
|
| Back to top |
|
 |
Ivano P Mucci Guest
|
Posted: Mon Aug 11, 2003 7:03 pm Post subject: Re: How to make designer see a datasource property on mycomp |
|
|
Doing like you sad there is a problem... it changes the form source and dfm,
adding the name of datasource like as if i droped the datasource myselft in
the form... the result access violations...:
| Quote: | form unit:
TForm2 = class(TForm) |
IJvQuery1: TIJvQuery;
IJvQuery1_DTS: TDataSource;
private
constructor TIQuery.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FDataSource := TDataSource.Create(AOwner);
end;
procedure TIQuery.SetName;
begin
inherited;
DataSource.Name := Name+'_DTS';
end;
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|