Testing for tDatabase EOF

Testing for tDatabase EOF

Postby Rick Lipkin » Tue Jun 01, 2021 9:35 pm

To All

How do I test for tDatabase end of file

If oDbf:Eof // fails

If oDbf:Eof() // fails

Any Ideas ?

Thanks

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Testing for tDatabase EOF

Postby James Bott » Tue Jun 01, 2021 9:45 pm

Rick,

I have never seen it fail. Can you provide sample code to show the failure?
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Testing for tDatabase EOF

Postby Rick Lipkin » Wed Jun 02, 2021 3:01 pm

James

I am retrofitting a billing app for my State Governmental customer that has me under contract to encrypt all their confidential billing information ( after the colonial pipeline hack ) .. I am re-tooling my app to use tdababase in certain modules that are temporally created on the local hard drive that I use as a repository for the dencrypted data.

oDbf:eof DOES work ... just my mistake in NOT passing the oDbf object to the correct ( retrofited ) function .. a rookie mistake :)

Thanks
Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Testing for tDatabase EOF

Postby karinha » Wed Jun 02, 2021 3:44 pm

Code: Select all  Expand view

IF EOF()

or

IF .NOT. FOUND()

or

   LOCAL lEof := .F.

   lEof  := oDbf:Eof()

   ? lEof

 


Regards.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7804
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 91 guests