Re: TIBQuery2.Assign(TIBQuery1) doesn't work
- From: "Maarten Wiltink" <maarten@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 21 Apr 2005 09:15:02 +0200
"Nick Alexander" <nic.alexander@xxxxxxxxx> wrote in message
news:4ba6d6f1.0504202023.6672bbce@xxxxxxxxxxxxxxxxxxxxx
> I am tryng to create a TIBQuery at runtime which must have the same
> calculated fields as a TIBQuery I have already created at design time.
> If I try to assign the design one to the runtime one, I get an error
> at runtime saying cannot assign a TIBQuery to a TIBQuery. What am I
> not uderstanding here?
Two possibilities. First, TIBQuery may not have overridden and
implemented Assign. Second, the other TIBQuery may be in a different
module. Class references (type values) should be singletons through
the application, but in practice they are singletons per module,
with the effect that a Delphi object in a DLL may be a different
class than an object in the main executable with the same class name.
Groetjes,
Maarten Wiltink
.
- References:
- TIBQuery2.Assign(TIBQuery1) doesn't work
- From: Nick Alexander
- TIBQuery2.Assign(TIBQuery1) doesn't work
- Prev by Date: Creating Calculated fields at run-time?
- Next by Date: Detecting Windows Shutting down or User Logout
- Previous by thread: TIBQuery2.Assign(TIBQuery1) doesn't work
- Next by thread: Re: TIBQuery2.Assign(TIBQuery1) doesn't work
- Index(es):