When trying to open a Sage file using todbc i'm getting a GPF when calling pen() command. Here is a cut-down version of the code that i'm using:
- Code: Select all Expand view
oOdbc := TOdbc():New(cDsn, cName, cPass)
If !oOdbc:lSuccess
oOdbc:ShowErrorList("ODBC session not successfully initialized, aborting...")
oOdbc:End()
retu nil
Endif
oDbf := oOdbc:Query( "SELECT * FROM " + cTable )
oDbf:lDateAsStr := .t.
oDbf:Open()
oDbf:Complete()
Any ideas why i'm getting the gpf?
Thanks in advance
Pete