Welcome! Log In Create A New Profile

Advanced

Re: Pass in HFSQL Classic

Posted by sivakrith 
Re: Pass in HFSQL Classic
August 19, 2019 03:36PM
Hello,

Windev 22, HFSQL classic

Need a facility to set Password for HFSQL Classic files by the clients themselves. They can set the password for HFSQL classic files at any time and can cancel it anytime.

Say after creation of data files, and either before entering any data or after entering data, they can set a password for all created data files.

Is it possible to implement such a feature in Windev 22 application ?

Happiness Always
BKR Sivaprakash
Re: Pass in HFSQL Classic
August 19, 2019 04:14PM
Hi,

HPass(..) is your friend. See [help.windev.com]

I thought that somewhere in the Help there is an example of how to change the password of a file. I didn't find it fast ... just try.

Kind regards,
Guenter Predl
office@windev.at
Re: Pass in HFSQL Classic
August 19, 2019 04:38PM
Yes, Hpass is the command.

Using it before creation of files HCreateifNotFound() works fine. After creation of files, I need to set password. My planned scenario is

1. Files will be created without password, by default
2. A window will be there to enter a password.
3. Files need to be set with the password
4. If necessary, application will be closed, and re-opened.
5. Now files to be accessed with the set password.

6. Password could be changed at any time, even password could be removed.

Result
1. No issue
2. Got a password. Tried to set it with
Hopen with old password, if any
HPass with new password
says it's successful

when I try to open the file from HF Control centre, it's asking for a password. Entering the new password is not working. Could not open with blank password even.
but the file could be opened from windev application, without password. Everything works fine from windev application, as if no password has been set.

Could sense somewhere I'm missing something, couldn't figure it out.

Happiness Always
BKR Sivaprakash
Re: Pass in HFSQL Classic
August 19, 2019 04:50PM
Hi,

HChangePassword(...) is your friend! Please, use the search function of the Help system!

[help.windev.com]

Kind regards,
Guenter Predl
office@windev.at
Re: Pass in HFSQL Classic
August 20, 2019 07:22AM
Thanks Guenter Predl,

That's it. Instead of HChangePassword, I was trying things with HPass

Thanks for the help.

Happiness Always
BKR Sivaprakash
Author:

Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: