How to check to see a dbf file is EOF ? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: How to check to see a dbf file is EOF ? (/thread-27673.html) |
How to check to see a dbf file is EOF ? - DarkCoder2020 - Jun-16-2020 I'm trying to make a if statement to check an see if my visual foxpro dbf file is at the end or not ? Any suggestions? Since Python doesn't use EOF(). Here I am opening the database , my for loops iterate through the dbf file but I want it where I can see if it's eof first else iterate. mhvupload_table = DBF('C:\Sonichr\\mhvupload.DBF', recfactory=None,load =True,ignore_missing_memofile=True) for mhvupload_rec in mhvupload_table: |