Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Python Error- TypeError: ('Params must be in a list, tuple, or Row', 'HY000')
Post: RE: Python Error- TypeError: ('Params must be in a...

How I do that?
DarkCoder2020 General Coding Help 3 5,486 Jul-28-2020, 04:31 PM
    Thread: Python Error- TypeError: ('Params must be in a list, tuple, or Row', 'HY000')
Post: Python Error- TypeError: ('Params must be in a lis...

I have a python error TypeError: ('Params must be in a list, tuple, or Row', 'HY000') but I don't know how to fix any suggestions my code is below: if len(strSsn.strip()) > 0: s20tuple = ("MI...
DarkCoder2020 General Coding Help 3 5,486 Jul-28-2020, 03:49 PM
    Thread: Get the record number of a dBASE dbf file
Post: Get the record number of a dBASE dbf file

Do anyone know how I could get the record number of a dbf file in python? Is there some type of function I could use ?
DarkCoder2020 General Coding Help 0 1,739 Jun-16-2020, 05:11 PM
    Thread: How to check to see a dbf file is EOF ?
Post: How to check to see a dbf file is EOF ?

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 it...
DarkCoder2020 General Coding Help 0 1,699 Jun-16-2020, 05:03 PM
    Thread: How to append a tuple full of records to a dbf file in Python?
Post: How to loop append a tuple for multiple records in...

I'm trying to append a tuple for multiple records but I only get the last record of my tuple. table = dbf.Table( 'empInfo.DBF', 'SSN C(11); STOREID C(4);Payrollid C(10); EmpId C(10); Fname C(20); Lnam...
DarkCoder2020 General Coding Help 4 3,645 May-29-2020, 02:40 PM
    Thread: How to append a tuple full of records to a dbf file in Python?
Post: How to append a tuple into a dbf file?

I'm trying to append tuple into my dbf file as records but it only gets the last line of my tuple. table = dbf.Table( 'empInfo.DBF', 'SSN C(11); STOREID C(4);Payrollid C(10); EmpId C(10); Fname C(20...
DarkCoder2020 General Coding Help 4 3,645 May-28-2020, 09:16 PM
    Thread: How to subtract the DayOfWeek from date from a integer?
Post: How to subtract the DayOfWeek from date from a int...

I'm trying to subtract a date such as 05/01/2020 from a integer such as -1. Any suggestions? int(cnt) dteStartDate =datetime.strptime(dteStartDate,'%m/%d/%Y').date() if dteSt...
DarkCoder2020 General Coding Help 2 2,082 May-27-2020, 07:08 PM
    Thread: How to append a tuple full of records to a dbf file in Python?
Post: RE: How to append a tuple full of records to a dbf...

I put it in that loop because I thought it would loop all my records. When its outside my for loop it shows no records in my dbf file.
DarkCoder2020 General Coding Help 4 3,645 May-27-2020, 04:42 PM
    Thread: How to append a tuple full of records to a dbf file in Python?
Post: How to append a tuple full of records to a dbf fil...

I'm trying to append a tuple full of records into a dbf file that I received from a sql statement but it only produce one record in my tuple. This is my code: try: DbConnect ...
DarkCoder2020 General Coding Help 4 3,645 May-27-2020, 04:06 PM

User Panel Messages

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