 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Richard Luteijn Guest
|
Posted: Sat Feb 18, 2006 1:03 am Post subject: Derive from TIBQuery, Database not Assigned error |
|
|
Hello,
How to derive a TIBQuery component ?
I'm trying to derive my own TMyIBQuery in a package MyPackage. I'm using the
Add button to add a new component and choose TIBQuery as the ancestor type.
etc. etc. The usual way.
Without adding any code or properties, I compile/install the package. Then
drop the new TMyIBQuery component on a new form in a new App (again no code
and no properties assigned).
THE PROBLEM:
When i try to delete the component from the form (or whenever the form is
closed) i get the message 'Database not Assigned' and the only way to close
the IDE is using the Taskmanager.
If i do the same with the 'genuine' TIBQuery, i can delete it without any
problem.
Using BCB 6 and InterbaseExpress 6.06
Thanks a lot for any help,
Richard |
|
| Back to top |
|
 |
Richard Luteijn Guest
|
Posted: Sun Feb 19, 2006 5:03 am Post subject: Re: Derive from TIBQuery, Database not Assigned error |
|
|
Apologies,
| Quote: | How to derive a TIBQuery component ?
Didn't look hard enough on the web. Read somewhere that due to a compiler |
issue, this is not possible.
But what about a TIBDataSet (the preferred component anyway). I can 'use'
the new TMyIBDataSet, providing i set the SelectSQL at runtime. Setting it
at design time results in a 'Transaction not active' error. But at least the
IDE is still alive after i close the form/app or delete the component.
btw. just upgraded to IBX 6.08.
Richard |
|
| 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
|
|