<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>21 Feb 2016 08:45:00 Z</lastBuildDate><pubDate>18 Feb 2016 07:09:00 Z</pubDate><description>Hello All&#13;
&#13;
In a previous post I highlighted a problem using Halias() that only occurs in HFCS and not in HFClassic. A suggested solution was to use HChangeConnection but that didn't fix the problem and after reading the help I am quite confused about the correct method of using HAlias() in HFCS&#13;
&#13;
From the Help:&#13;
If HChangeDir or HConnect has been used with the initial file, these changes are ignored by the file.&#13;
Once an alias was created, we recommend that you use HConnect to define the connection parameters on the alias file.&#13;
&#13;
I run a single HConnection() to the HFCS in the project init code. I have a large number of HAlias() calls in the app and they all appear to work except in the case where the files is aliased as a source back to itself and I can appreciate that may cause issues.&#13;
&#13;
My questions are:&#13;
Do I have to use HChangeConnection(AliasFileName,HFCSConnectionName) in every case after declaring the alias and before the HCHangeName() ?&#13;
&#13;
If this is the case do I have to test for running in HFCS or Classic before issuing the HChangeConnection(AliasFileName,HFCSConnectionName) or will Windev ignore it if I am running with an HFClassic database ?&#13;
&#13;
Should I follow the help and use HConnect() which doesn't seem the way to go as I will be constantly making and breaking connections ?&#13;
&#13;
&#13;
Regards&#13;
Al</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias/read.awp</link><title>WD[20] Do I have to use HConnection everytime I use an Alias ?</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56552/read.awp</comments><pubDate>21 Feb 2016 08:45:00 Z</pubDate><description>Hello All&#13;
&#13;
Thanks to everyone for posting on this thread and the earlier one.&#13;
The solution I used was to go with Guenters ide…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56552/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56552/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias/read.awp">WD[20] Do I have to use HConnection everytime I use an Alias ?</source><title>Re: WD[20] Do I have to use HConnection everytime I use an Alias ?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56532/read.awp</comments><pubDate>20 Feb 2016 01:35:00 Z</pubDate><description>Hello Piet&#13;
&#13;
Thanks for the suggestion, I am using a variety of the suggestions made in the threads.&#13;
I suppose the real proble…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56532/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56532/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias/read.awp">WD[20] Do I have to use HConnection everytime I use an Alias ?</source><title>Re: WD[20] Do I have to use HConnection everytime I use an Alias ?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56519/read.awp</comments><pubDate>19 Feb 2016 11:59:00 Z</pubDate><description>Hi Al,&#13;
&#13;
If you do need to change code you might consider simplifying it.&#13;
Two simple options that Guenter already pointed out,…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56519/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56519/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias/read.awp">WD[20] Do I have to use HConnection everytime I use an Alias ?</source><title>Re: WD[20] Do I have to use HConnection everytime I use an Alias ?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56510/read.awp</comments><pubDate>18 Feb 2016 20:52:00 Z</pubDate><description>Hello Guenter&#13;
&#13;
Thanks for the example.&#13;
I assume the reason behind establishing a fake connection to the HFClassic database in…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56510/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56510/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias/read.awp">WD[20] Do I have to use HConnection everytime I use an Alias ?</source><title>Re: WD[20] Do I have to use HConnection everytime I use an Alias ?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56506/read.awp</comments><pubDate>18 Feb 2016 18:26:00 Z</pubDate><description>Hi Al, I'm sorry I had to leave the office ... I'd say that you can have a comparable behaviour of C/S and Classic when using HO…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56506/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56506/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias/read.awp">WD[20] Do I have to use HConnection everytime I use an Alias ?</source><title>Re: WD[20] Do I have to use HConnection everytime I use an Alias ?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56498/read.awp</comments><pubDate>18 Feb 2016 11:18:00 Z</pubDate><description>Hello Steven&#13;
&#13;
Thanks for the followup.&#13;
I did try the HCHangeConnection() but it didn't work in the case I tried it on which w…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56498/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56498/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias/read.awp">WD[20] Do I have to use HConnection everytime I use an Alias ?</source><title>Re: WD[20] Do I have to use HConnection everytime I use an Alias ?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56495/read.awp</comments><pubDate>18 Feb 2016 10:52:00 Z</pubDate><description>Hi Al,&#13;
HF C/S and Classic do have some differences and code is NOT always 100% compatible ...&#13;
I am quite sure that HChangeConn…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56495/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56495/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias/read.awp">WD[20] Do I have to use HConnection everytime I use an Alias ?</source><title>Re: WD[20] Do I have to use HConnection everytime I use an Alias ?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56494/read.awp</comments><pubDate>18 Feb 2016 10:12:00 Z</pubDate><description>Hello Guenter&#13;
&#13;
Thanks for the reply. I still have a couple of questions though.&#13;
Can I run the same code for HFClassic ?&#13;
If I…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56494/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56494/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias/read.awp">WD[20] Do I have to use HConnection everytime I use an Alias ?</source><title>Re: WD[20] Do I have to use HConnection everytime I use an Alias ?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56490/read.awp</comments><pubDate>18 Feb 2016 07:45:00 Z</pubDate><description>Hi Al, whenever you're opening an Alias file (e.g. CUSTOMER1) then in fact it is meant to point to the aliased file (e.g. CUSTOM…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56490/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias-56490/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56484-wd20-have-use-hconnection-everytime-use-alias/read.awp">WD[20] Do I have to use HConnection everytime I use an Alias ?</source><title>Re: WD[20] Do I have to use HConnection everytime I use an Alias ?</title></item></channel></rss>
