<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>6 Dec 2017 01:11:00 Z</lastBuildDate><pubDate>6 Dec 2017 01:11:00 Z</pubDate><description>I have an app where I connect to our main server with the following code.&#13;
MainServer..Server = MyServer MainServer..Database = MyDb MainServer..User = MyUser MainServer..Password = MyPassword MainServer..Provider = hAccessHFClientServer IF NOT HOpenConnection(MainServer) THEN Error(HErrorInfo()) ELSE HChangeConnection("*", MainServer) END&#13;
One of the features of this app needs to connect to our customer databases. I use the following code.&#13;
CustomerDatabase..Server = sServer CustomerDatabase..Database = sDatabase CustomerDatabase..User = sUser CustomerDatabase..Password = sPassword CustomerDatabase..Provider = hAccessHFClientServer IF NOT HOpenConnection(CustomerDatabase) THEN Error(HErrorInfo()) ELSE HChangeConnection("*", CustomerDatabase) END // Open the customers analysis IF NOT HOpenAnalysis(fExeDir() + "\CustomerAnalysis.wdd") THEN Error(HErrorInfo(hErrMessage)) END&#13;
This all works well, but when it comes time to reconnect to the main server and the original analysis I'm having issues. To do this I call the first block of code again, but I also add HOpenAnalysis().&#13;
IF NOT HOpenAnalysis(MyOriginalAnalysis.wdd") THEN Error(HErrorInfo(hErrMessage)) END When I try to access parts of my app that need the original analysis I get errors like "Payments file unknown". MyOriginalAnalysis.wdd is the original analysis file from this project directory. I have also tried HOpenAnalysis("").</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63574-wd20-reconnect-original-analysis/read.awp</link><title>[WD20] Reconnect to Original Analysis</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
