Xbase++ errors when trying to open their Alaska-Software.isam.order table in either ISAM mode or SQL SELECT mode.
My code below shows what I am trying to do.
Has anyone been successful doing this.
There is no problem using PgAdmin to view these tables.
Code: Select all
IF oConnection:type = 'ADS'
cDbe := 'ADSDBE'
ELSEIF oConnection:type = 'ODBC'
cDbe := 'ODBCDBE'
ELSEIF oConnection:type = 'PG'
cDbe := 'PGDBE'
ENDIF
cFileName := Upper(cFileName)
IF cFileName = 'ALASKA-SOFTWARE.ISAM.ORDERS'
cAlias := 'XBASEORDERS'
ELSEIF cFileName = 'ALASKA-SOFTWARE.ISAM.TABLES'
cAlias := 'XBASETABLES'
ELSEIF cFileName = 'ALASKA-SOFTWARE.SYSTEM.CONNECTIONS'
cAlias := 'XBASESYSTEM'
ELSE
cAlias := Strtran(DC_Path(cFileName,.t.),'.DBF','')
ENDIF
cAlias := Strtran(cAlias,'-','')
IF Len(cAlias) > 10
cAlias := Substr(cAlias,1,10)
ENDIF
dbeSetDefault(cDbe)
IF Empty(Alias())
USE (cFileName) VIA (oSession) NEW ALIAS (cAlias)
ELSE
lCloseWorkArea := .f.
ENDIF