[DUG] Where am I in a file (dbf)
Alister Christie
alister at salespartner.co.nz
Thu Oct 23 16:36:43 NZDT 2008
You could check that recordcount > 0 (provided that you only have a
small number of records), (Dataset.EOF and DataSet.BOF), if they are
both true then your dataset is empty.
That is if I'm reading your question correctly.
Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
PO Box 13085
Johnsonville
Wellington
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