Question : VB6 opening FoxPro 2.5 data base with code

Hi
I am using VB6 SP4
I have a DOS based program using FOX PRO 2.5 (DBF files with CDX index files )that I whish to get access to and modify data.
I whish to do all connections and data upgrades in code .

I can use code to open and modify MS ACCESS file (MDB) as follows.

referance MS ActiveX Data Objects 2.5 Library

Dim dbCon as New ADODB.Connection
Dim dbRst as New ADODB.Recordset
Dim JetOLEDB as string

JetOLEDB = "Provider = Microsoft.Jet.OLEDB.4.0;Data Source = c:\MyDataBase.mdb"

dbCon.open JetOLEDB
dbRst.open "SELECT Data.Table FROM Data" ,dbCon,adOpenstatic,adLockReadOnly

With dbRst
      .movefirst
          etc
End with
dbRst.close
dbCon.close

etc

Is there a similar way to open Fox Pro 2.5 with code ??
I read that you must open Fox Pro with the correct version or they will not work for long.

Thank you for any help.
PK

Answer : VB6 opening FoxPro 2.5 data base with code

Per recommendation, points NOT refunded and question closed.

Netminder
CS Moderator
Random Solutions  
 
programming4us programming4us