<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>19 Nov 2017 22:43:00 Z</lastBuildDate><pubDate>19 Nov 2017 22:43:00 Z</pubDate><description>Hello to you all,&#13;
&#13;
I have multiple files that are used and I want to password protect them.&#13;
There are two possibilities:&#13;
a) The file is already password protected&#13;
b) It is not passwordprotected&#13;
&#13;
I don't know which customers files are already protected. So I thought:&#13;
HPass(MyFile,"Mypassword")&#13;
HChangePassword(MyFile,"Mypassword") // changing it to the same password in case of b)&#13;
&#13;
a) this code works fine&#13;
b) the HPass and HChangePassword gives a result: true. But it is not password protected afterwards???&#13;
&#13;
In case off b) : When I leave the HPass away then it encrypts but I need it when it is encrypted.&#13;
It seams that HChangePassword does not work when I use a HPass before it when the file is not password protected.&#13;
Any ideas on how to solve this?</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63367-hchangepassword-problem/read.awp</link><title>HchangePassword problem</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
