RE: TZF - Find Error?

Glen Taylor <[email protected]> Sat, 29 Nov 2003 08:47:42 -0500
Newsgroups gmane.comp.lang.delphi.topaz
Message-ID <[email protected]>
This is a multi-part message in MIME format.

------=_NextPart_000_000B_01C3B655.737CA5D0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Just an idea how trying a gotop() before your call to find(). This insures
that the record pointer is reset. You may be having a cache problem.
  -----Original Message-----
  From: [email protected] [mailto:[email protected]]
  Sent: Saturday, November 29, 2003 7:29 AM
  To: [email protected]
  Subject: Re: TZF - Find Error?



  Phil,

  I just tried out several successive "FINDs" on
  a test application and I did not have this problem.
  Using Topaz 8 (with latest fixes) and Delphi 6.

  Bob
  ________________________________________

  In a message dated 11/28/2003 9:41:33 AM Eastern Standard Time,
[email protected] writes:



    Hello All,

    After three days of going crazy I think I have found a problem with  the
    Find function and I was wondering if anyone else had come across this.

    The first time I do a Find the record is returned properly.

    The second time I do a Find for the same record correct record it is
    returned properly.

    The third time I do a Find for the same record the record is NOT found.

    In testing my code the active record in the database has not been
    changed between the first and third Find. Of course I cannot be certain
    that will always be the case. While playing with the code I did a Skip
    command before the Find just to see if that would help and it did not.

    The Find command is always issued in the same procedure and I have
    stepped through the code and there is no other place where the database
    is accessed while testing.

    If I close and then reopen the database before the Find I get the
    correct record each time.

    Any ideas on what is happening?

    Phil Kidder

--^----------------------------------------------------------------
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
--^----------------------------------------------------------------






------=_NextPart_000_000B_01C3B655.737CA5D0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1264" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=190424513-29112003><FONT face=Arial color=#0000ff size=2>Just 
an idea how trying a gotop() before your call to find(). This insures that the 
record pointer is reset. You may be having a cache 
problem.&nbsp;</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> [email protected] 
  [mailto:[email protected]]<BR><B>Sent:</B> Saturday, November 29, 2003 7:29 
  AM<BR><B>To:</B> [email protected]<BR><B>Subject:</B> Re: TZF - Find 
  Error?<BR><BR></FONT></DIV><FONT face=arial,helvetica><FONT lang=0 face=Arial 
  size=2 FAMILY="SANSSERIF"><BR>Phil,<BR><BR>I just tried out several successive 
  "FINDs" on<BR>a test application and I did not have this problem.<BR>Using 
  Topaz 8 (with latest fixes) and Delphi 
  6.<BR><BR>Bob<BR>________________________________________<BR><BR>In a message 
  dated 11/28/2003 9:41:33 AM Eastern Standard Time, [email protected] 
  writes:<BR><BR><BR>
  <BLOCKQUOTE 
  style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px" 
  TYPE="CITE">Hello All,<BR><BR>After three days of going crazy I think I have 
    found a problem with&nbsp; the <BR>Find function and I was wondering if 
    anyone else had come across this.<BR><BR>The first time I do a Find the 
    record is returned properly.<BR><BR>The second time I do a Find for the same 
    record correct record it is <BR>returned properly.<BR><BR>The third time I 
    do a Find for the same record the record is NOT found.<BR><BR>In testing my 
    code the active record in the database has not been <BR>changed between the 
    first and third Find. Of course I cannot be certain <BR>that will always be 
    the case. While playing with the code I did a Skip <BR>command before the 
    Find just to see if that would help and it did not.<BR><BR>The Find command 
    is always issued in the same procedure and I have <BR>stepped through the 
    code and there is no other place where the database <BR>is accessed while 
    testing.<BR><BR>If I close and then reopen the database before the Find I 
    get the <BR>correct record each time.<BR><BR>Any ideas on what is happening? 
    <BR><BR>Phil Kidder<BR></BLOCKQUOTE><BR><BR></FONT></BLOCKQUOTE></FONT><PRE>--^^---------------------------------------------------------------
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: <A HREF="http://topica.com/u/?clvXPN.a5kvff.Z2NsZHQt">http://topica.com/u/?clvXPN.a5kvff.Z2NsZHQt</A>
Or send an email to: [email protected]

TOPICA - Start your own email discussion group. FREE!
<A HREF="http://www.topica.com/partner/tag02/create/index2.html">http://www.topica.com/partner/tag02/create/index2.html</A>
--^^---------------------------------------------------------------</PRE>
</BODY></HTML>

------=_NextPart_000_000B_01C3B655.737CA5D0--