Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Delphi Components Writing > DataSet propert...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 149 of 155
Post > Topic >>

DataSet property of DataSource not assigned on SetDataSource Event

by "Delphi3Net" <stilonegro@[EMAIL PROTECTED] > Nov 16, 2006 at 01:48 AM

I have a following problem. I made my own data-aware component. On the
creation of the component in the SetDataSource event i want to access
to DataSet property of DataSource. But on the create it not assigned
(DataSource.DataSet=Nil). How can I manually assign this DataSet
property so that I can access this DataSet property in the event I
mentioned.

This is my code:

procedure TmyNewDBComponent.SetDataSourceEdit(
  const Value: TDataSource);
begin
  //FDataLink.DataSource:=Value;

if not (FDataLink.DataSourceFixed and (csLoading in ComponentState))
then
    FDataLink.DataSource := Value;
  if Value <> nil then Value.FreeNotification(Self);
//at this point FDataLink.DataSource.DataSet=NIL !!!!!
end;
 




 1 Posts in Topic:
DataSet property of DataSource not assigned on SetDataSource Eve
"Delphi3Net" &l  2006-11-16 01:48:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 23 16:19:22 CDT 2008.