RE: TZF - SetRelationTo question

Lloyd Edwards <[email protected]>
Newsgroups gmane.comp.lang.delphi.topaz
Message-ID <[email protected]>
I read on this list that it is best to start an app with all the tzdbs 
no active, open as needed, and close when finished. When I did that, my 
main frustrations (sent to this list) vanished. THanks. 
Lloyd Edwards wrote:
> 
> I'm having trouble establishing a simple relation. I've copied the code 
> in the manual, as follows: 
> 
> procedure TFrmMain2.HELecRelation;
> var ST : string;
> begin
>   tzdbHELec.DisableControls;
>    try
>     St := tzdbTempYear.GetCField('HELecKey');
>     tzdbHELec.SetFilterTo('DAYKEY=="' + St + '"');
>     tzdbHELec.GoTop;
>   finally
>     tzdbHELec.EnableControls;
>   end;
> end;
> 
> AND in FormCreate: 
> 
>  tzdbHELec.SetRelationTo(HELecRelation);
> 
> THe program compiles ok. When I run the program, I get a stack overflow 
> error in the 
> HELecRelation procedure. When I step through it cycles between "begin" 
> and "SetFilterTo" statements in HELecRelation. I've tried every 
> alternative I can think of. Any ideas? 
> Thanks -- Lloyd Edwards

==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?clvXPN.a5kvff.Z2NsZHQt
Or send an email to: [email protected]

TOPICA - Start your own email discussion group. FREE!
http://www.topica.com/partner/tag02/create/index2.html
==^================================================================
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.