[PB 5.22 x86] FirstDatabaseRow VFP Driver

Just starting out? Need help? Post your questions and find answers here.
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

[PB 5.22 x86] FirstDatabaseRow VFP Driver

Post by Flype »

Hi PB Team,

I think there's a bug with the FirstDatabaseRow() function - at least with UseODBCDatabase() and the Microsoft Visual FoxPro Driver.

FirstDatabaseRow() returns 0 while NextDatabaseRow() returns <> 0

If you need more / sample code, i could do.

By the way, this bug isn't new with 5.22 (i think it could be very old) - and this might not be a 'real' PB bug but more a 'not supported function' in some ODBC drivers (?)
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
DK5UR
User
User
Posts: 23
Joined: Mon Jun 23, 2008 9:44 pm
Location: Laubach

Re: [PB 5.22 x86] FirstDatabaseRow VFP Driver

Post by DK5UR »

Hi Flype,
Did you check the "new" flags for OpenDatabase()?
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Re: [PB 5.22 x86] FirstDatabaseRow VFP Driver

Post by Flype »

Ah yes, you're right. I didn't see those new flags.

You mean, #PB_Database_DynamicCursor & #PB_Database_StaticCursor to be used in DatabaseQuery().

Ok, i will have to try this at work next week.

So, maybe no bug. Sorry for the inconveniance.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
DK5UR
User
User
Posts: 23
Joined: Mon Jun 23, 2008 9:44 pm
Location: Laubach

Re: [PB 5.22 x86] FirstDatabaseRow VFP Driver

Post by DK5UR »

Ah, yes DatabaseQuery()...
I'm not at a computer, just have that problem with the flags in mind ;-)
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Re: [PB 5.22 x86] FirstDatabaseRow VFP Driver

Post by Flype »

It was enough, thanks :wink:
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Re: [PB 5.22 x86] FirstDatabaseRow VFP Driver

Post by Flype »

Checked and ok !

You were right, it's ok with to use FirstDatabaseRow() with DatabaseQuery(myDb, myQuery, #PB_Database_DynamicCursor)

So, no bug, sorry.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Post Reply