Subject Re: [IBO] How-To detach a TIB_Dataset from a TIB Query. Stateless TIB_Dataset.
Author Helen Borrie (TeamIBO)
At 02:10 PM 05-07-02 +0200, Magnus Karlsson wrote:
>Hi,
>
>I wish to extract the retrieved data from a TIB_Query and store it in a
>TIB_Dataset. The problem is that the data vanish from the TIB_Dataset the
>moment I close the TIB_Query?

TIB_Dataset is the base class for several descendants, including
TIB_Query. All of its properties and methods are inherited by TIB_Query. A
TIB_Query is already a TIB_Dataset so the output of the query statement is
already stored in a TIB_Dataset! Please tell us what you are trying to
achieve...

>Other properties I have looked at is
>IBODataset

The IBODataset property does not pertain to TIB_Query. It refers to the
TDataset, when TIB_BDataset (a descendant) is used as a wrapper for the
TDataset-compatible datasets.

>MasterDataset

The MasterDataset property is used internally when the TIB_Query class is
used as the detail set in a master-detail relationship.

>KeyDataset

The KeyDataset property is used internally when the TIB_Query class is used
as the lookup set in a Keysource-Lookup relationship.

>But they are all NULL.

Of course. They are nil because the supporting properties are not used.

>I also tried to use the copy constructor for TIB_Dataset, with input the
>opened TIB_Query, but afterwards I close the TIB_Query and iterating throw
>the newly copy-constructed TIB_Dataset I receive a unknown cannot read
>exception.

Please provide a good description of what you want to do.

>Does anyone know how to accomplish a stateless TIB_Dataset?

How "stateless"? Please describe.

regards,
Helen Borrie (TeamIBO Support)

** Please don't email your support questions privately **
Ask on the list and everyone benefits
Don't forget the IB Objects online FAQ - link from any page at
www.ibobjects.com