[DUG] Where am I in a file (dbf)

Robert martin rob at chreos.co.nz
Thu Oct 23 16:21:07 NZDT 2008


Assuming you are using Standard delphi db components and that this is a 
master detail...

Your master and detail would be linked on the PK in the master to the FK 
in the detail.  The detail will be EOF when you have looped to the last 
detal record.  Query.isEmpty will be true if there are no records.

Hope that gets you started.

Rob



Marshland Engineering wrote:
> I have two files. The second file is linked to the first. I'm trying 
> to check if I am on a valid record when I open the second file. If I'm 
> on a valid record, I return the correct record number with recno.  If 
> not I get 21474836. Where does this number come from?  The problem is 
> that if I try and read an "invalid" record I get "Invalid variant type 
> conversion." Is there a better way to find out if I am on a valid record?
>  
> Thanks Wallace
> ------------------------------------------------------------------------
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject: unsubscribe


More information about the Delphi mailing list