Python Forum
How to check to see a dbf file is EOF ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to check to see a dbf file is EOF ?
#1
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: 
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  please check this i wanna use a csv file as a graph xCj11 5 1,437 Aug-25-2022, 08:19 PM
Last Post: deanhystad
  check if a file exist on the internet and get the size kucingkembar 6 1,714 Apr-16-2022, 05:09 PM
Last Post: kucingkembar
  Code to check folder and sub folders for new file and alert fioranosnake 2 1,874 Jan-06-2022, 05:03 PM
Last Post: deanhystad
  Check last time file was accessed Pavel_47 4 2,759 Jun-01-2021, 05:47 PM
Last Post: Yoriz
  How to check if a file has finished being written leocsmith 2 7,690 Apr-14-2021, 04:21 PM
Last Post: perfringo
  Check if a file exists. Pedroski55 5 3,251 Sep-08-2020, 10:01 AM
Last Post: Pedroski55
  Building a script to check size of file upon creation mightyn00b 2 2,351 Apr-04-2020, 04:39 AM
Last Post: Larz60+
  MySql - Loop - CHeck File gcclinux 1 2,049 Nov-30-2019, 11:51 AM
Last Post: ThomasL
  how to check for file type in a folder SoulsKeeper 4 4,870 Sep-15-2018, 02:48 PM
Last Post: ichabod801
  [split] Check presence of a file pascale 25 10,757 Jul-08-2018, 12:23 PM
Last Post: pascale

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020