by ssi >> Mon, 17 Feb 2003 2:36:50 GMT
Hi, i am trying to change the file dsn of an external database in Jade using code. After changing the dsn of the database using the setFileDSN method, i try doing a doing a getAtKey on an external Dictionary based off that database, but it somehow still thinks it is looking in the old location for the file dsn, as i get an odbc error message saying that the path is invalid.
The code I am using :
vars
exap : QMAppSth; //External DataBase
apCol : QMCrs_appellationByPDict; //External Dictionary
ap : QMCrs_appellation; //External Objectbegin
create apCol transient;
exap := apCol.database.QMAppSth;
write exap.getFileDSN;
exap.setFileDSN('D:\Program Files\QMap\QMAppSth.dsn');
//exap.inspectModal;
exap.close;
write exap.getFileDSN;
ap := apCol.getAtKey(3555397);
ap.inspectModal;
end;
Has anyone had experience with this?
cheers
Mark