Python Forum

Full Version: How to check to see a dbf file is EOF ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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: