BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Derive from TIBQuery, Database not Assigned error

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (InterBase Express)
View previous topic :: View next topic  
Author Message
Richard Luteijn
Guest





PostPosted: Sat Feb 18, 2006 1:03 am    Post subject: Derive from TIBQuery, Database not Assigned error Reply with quote



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





PostPosted: Sun Feb 19, 2006 5:03 am    Post subject: Re: Derive from TIBQuery, Database not Assigned error Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (InterBase Express) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.