PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → HchangePassword problem
HchangePassword problem
Iniciado por guest, 19,nov. 2017 22:43 - No hay respuesta
Publicado el 19,noviembre 2017 - 22:43
Hello to you all,

I have multiple files that are used and I want to password protect them.
There are two possibilities:
a) The file is already password protected
b) It is not passwordprotected

I don't know which customers files are already protected. So I thought:
HPass(MyFile,"Mypassword")
HChangePassword(MyFile,"Mypassword") // changing it to the same password in case of b)

a) this code works fine
b) the HPass and HChangePassword gives a result: true. But it is not password protected afterwards???

In case off b) : When I leave the HPass away then it encrypts but I need it when it is encrypted.
It seams that HChangePassword does not work when I use a HPass before it when the file is not password protected.
Any ideas on how to solve this?