Subject [IBO] Re: Dataset.create code
Author bruce_haskell
In a nutshell, on a descendent of TWinControl, I want to add a
property where I can set the databasename that corresponds to the
databasename of any TIBODatabase component in the project (on the
parent form or other linked form).

When I looked at the TDatabasenameproperty in IBODatasetEditors it
showed that IBODataset has a property IB_Session which the editor
uses to display all the Databasenames.

As I have looked at this further, my intent is to add a similar
parameter to my component so I could use a hybrid
TDatabasenameproperty. So I wanted to look at the code for setting
this property that IBODataset (or it parent) uses, but I can not find
the code for it.

If you can point me to this code I think I can make this work.
However, I you have any other ways to accomplish this I would love to
here them.

Thanks, for responding,

Bruce


--- In IBObjects@yahoogroups.com, "Jason Wharton" <jwharton@i...>
wrote:
> I'm still not very clear on what you are trying to accomplish
here...
>
> Jason Wharton
> CPS - Computer Programming Solutions
> Mesa Arizona
> http://www.ibobjects.com
>
> -- We may not have it all together --
> -- But together we have it all --
>
> ----- Original Message -----
> From: "bruce_haskell" <brucehaskell@c...>
> To: <IBObjects@yahoogroups.com>
> Sent: Friday, May 09, 2003 9:26 AM
> Subject: [IBO] Re: Dataset.create code
>
>
> > Thanks, Jason.
> >
> > I found a number of references to procedures in IBA_Dataset.int,
> > IBA_Connection.int, IBA_session.int and IBA_statement which might
> > help me with my answer, but there is no underlying code for the
> > procedures in those files. (nor can I see them in any other file)
> > If you can point to the right files, it would be great.
> >
> > The .imp files only appear to apply to the win controls, not the
> > related dataset components.
> >
> > Thanks for any additional information you can give me.
> >
> > Bruce
> >
> >
> > --- In IBObjects@yahoogroups.com, "Jason Wharton" <jwharton@i...>
> > wrote:
> > > Trace out the DatabaseName property and that should lead you to
> > what you are
> > > looking for.
> > > Did you look in the .imp files?
> > >
> > > Jason Wharton
> > > CPS - Computer Programming Solutions
> > > Mesa Arizona
> > > http://www.ibobjects.com
> > >
> > > -- We may not have it all together --
> > > -- But together we have it all --
> > >
> > > ----- Original Message -----
> > > From: "bruce_haskell" <brucehaskell@c...>
> > > To: <IBObjects@yahoogroups.com>
> > > Sent: Thursday, May 08, 2003 6:13 AM
> > > Subject: [IBO] Dataset.create code
> > >
> > >
> > > > I am migrating from BDE to IBO. My own component (a
descendent of
> > > > TwinControl which acts as a container for other controls),
which I
> > > > use in my applications, has a property to set the database to
> > > > interact with. With the BDE I was able to write a property
> > editor to
> > > > display all the BDE aliases accessing the Session variable.
> > > >
> > > > For compatibly purposes, I would like this property to work
> > similar
> > > > to the Databasename property on the IBODatasets. (The
IBODataset
> > > > property editors only work with descendents of IBO objects.)
To
> > work
> > > > around this I had hoped the see how the IBO components find
the
> > > > IBODatabase when they get created.
> > > >
> > > > I look through all the IBO4 .pas, .int, .pbl files for the
code,
> > but
> > > > can not find it.
> > > >
> > > > Can some one tell me where this code is or how I can have my
> > > > component find a IBOdatabase (that may be in a different unit
in a
> > > > project)?
> > > >
> > > > Thanks in advance.
> > > >
> > > > Bruce