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: [email protected]
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe

Reply via email to