Page 1 of 1
Testing for tDatabase EOF
Posted: Tue Jun 01, 2021 9:35 pm
by Rick Lipkin
To All
How do I test for tDatabase end of file
If oDbf:Eof // fails
If oDbf:Eof() // fails
Any Ideas ?
Thanks
Rick Lipkin
Re: Testing for tDatabase EOF
Posted: Tue Jun 01, 2021 9:45 pm
by James Bott
Rick,
I have never seen it fail. Can you provide sample code to show the failure?
Re: Testing for tDatabase EOF
Posted: Wed Jun 02, 2021 3:01 pm
by Rick Lipkin
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
Re: Testing for tDatabase EOF
Posted: Wed Jun 02, 2021 3:44 pm
by karinha
Code: Select all | Expand
IF EOF()
or
IF .NOT. FOUND()
or
LOCAL lEof := .F.
lEof := oDbf:Eof()
? lEof
Regards.