Topic: pwGen

Sometime ago with the help and Dmitry and community members the attached below password generator was developed.


1. It doesn't compile with MVD v6.5. Error line 143 is marked on script page.


2. I wanted to duplicate table grid on frmPwGen to frmPwSets which couldn't.


help to solve issues above would be appreciated...

Post's attachments

Attachment icon PwGen 2.zip 17.17 kb, 45 downloads since 2023-10-11 

Adam
God... please help me become the person my dog thinks I am.

Re: pwGen

AD1408 wrote:

Sometime ago with the help and Dmitry and community members the attached below password generator was developed.


1. It doesn't compile with MVD v6.5. Error line 143 is marked on script page.


2. I wanted to duplicate table grid on frmPwGen to frmPwSets which couldn't.


help to solve issues above would be appreciated...

indx := Trunc(random * Array_Length);  // causing an error when compiled with MVD v6.5

random ???

3 (edited by AD1408 2023-10-11 15:28:18)

Re: pwGen

pavlenko.vladimir.v wrote:
AD1408 wrote:

Sometime ago with the help and Dmitry and community members the attached below password generator was developed.


1. It doesn't compile with MVD v6.5. Error line 143 is marked on script page.


2. I wanted to duplicate table grid on frmPwGen to frmPwSets which couldn't.


help to solve issues above would be appreciated...

indx := Trunc(random * Array_Length);  // causing an error when compiled with MVD v6.5

random ???

no idea
error info says: Not enough parameters

Adam
God... please help me become the person my dog thinks I am.

Re: pwGen

I think that the Random command must  to be like this  Random(some number)

Re: pwGen

v_pozidis wrote:

I think that the Random command must  to be like this  Random(some number)


That's worked... Thank you very much v_pozidis.......
--------------------------------------------------------------------------

Now the issue 2 remains.
I wanted to duplicate tablegrid on frmPwGen to frmPwSets which couldn't.
Browsing password sets on frmPwSets tablegrid by onCellClick and onKeyUp on password sets tablegrid.

Adam
God... please help me become the person my dog thinks I am.

Re: pwGen

Hi

The error indicates that the function is missing arguments. In later versions of MVD, the RANDOM function was changed.
Now its syntax is random(integer) where integer is the number up to which random integers are output. You can write
random(10)/10 in this form if you need values from 0 to 1 as in the old version. Or use the randomrange() function.
You have a hint in the script window when you open the functions window on the right side.

Re: pwGen

Your question about duplication "I wanted to duplicate tablegrid on frmPwGen to frmPwSets..." is not entirely clear.
For the second question, create a button with the SEARCH function. Fill in the fields according to the questions. Enter the name of this button in the incremental search in the table on the left.

Re: pwGen

sparrow wrote:

Your question about duplication "I wanted to duplicate tablegrid on frmPwGen to frmPwSets..." is not entirely clear.
For the second question, create a button with the SEARCH function. Fill in the fields according to the questions. Enter the name of this button in the incremental search in the table on the left.

Hi Sparrow,
My one cell brain failed to see the forest for the trees.
Thank you very much for your kind help....
I think it works now as I wanted.

Post's attachments

Attachment icon PwGen 2.zip 18.06 kb, 53 downloads since 2023-10-12 

Adam
God... please help me become the person my dog thinks I am.

Re: pwGen

Check your password generation again.

Re: pwGen

       indx := random(Array_Length);

Re: pwGen

Hi Sparrow,
Once again, thank you very much...............

Adam
God... please help me become the person my dog thinks I am.