Conectivity between PowerBuilder 5. and BTRIEVE 5.x

We use PowerBuilder 5 desktop 32 bit  and want to conect data via odbc to BTRIEVE 5.x
eldarAsked:
Who is Participating?
 
EzhilConnect With a Mentor Commented:
Create ODBC that is DSN (Data Source Name) for BTRIEVE from Control Panel / ODBC or ODBC Painter from PB , fox ex test is the DSN.

From PB

sqlca.dbms = "odbc"
sqlca.dbparm = "connectstring='DSN=test'"
connect;

if sqlca.sqlcode <> -1 then
//Error
messagebox('sqlerrtext',sqlca.sqlerrtext)
else
//Success
end if


0
 
eldarAuthor Commented:
The answer is the first step one does, however it doesn't work with power builder 5 desktop.
0
All Courses

From novice to tech pro — start learning today.