I tried to use the odbc for a connection to lcMyfile (patdb.db)
lcdsn="DRIVER=Driver do MICROSOFT Paradox DRIVER (*.DB);" + "DBQ="+lcMyfile
lnConnHandle = SQLSTRINGCONNECT(lcdsn)
IF lnConnHandle > 0
lnResult = SQLTABLES(lnConnHandle, 'TABLE')
IF lnResult > 0
SELECT SQLResult
lcSQLCommand = "SELECT * FROM [" + ALLTRIM (SQLResult.table_name) + "]"
lnGetData = SQLEXEC(lnConnHandle, lcSQLCommand, 'newdata')
....
but it does not work!
first I got
lnConnHandle= -1
I am working with vfp9 on XP
any help or better Example
thank you all
manfrid
lcdsn="DRIVER=Driver do MICROSOFT Paradox DRIVER (*.DB);" + "DBQ="+lcMyfile
lnConnHandle = SQLSTRINGCONNECT(lcdsn)
IF lnConnHandle > 0
lnResult = SQLTABLES(lnConnHandle, 'TABLE')
IF lnResult > 0
SELECT SQLResult
lcSQLCommand = "SELECT * FROM [" + ALLTRIM (SQLResult.table_name) + "]"
lnGetData = SQLEXEC(lnConnHandle, lcSQLCommand, 'newdata')
....
but it does not work!
first I got
lnConnHandle= -1
I am working with vfp9 on XP
any help or better Example
thank you all
manfrid