ispassword
Determines if a password is stored.
Format
ispassword <filename> <password name>
Parameters
- string <filename>
- Password file name.
- string <password name>
- Password identifier.
Return Value
- System variable <result>
- When a password identified by <password name> exists in the password file, it is set to 1.
Otherwise, it is set to 0.
Remarks
A password identified by <password name> from the password file <filename> is determined if the password is stored in the file.
Example
strdim pw 2 username = 'foo' ispassword 'password.dat' username ; result: 0=false; 1=true if result = 1 then getpassword 'password.dat' username pw[0] pw[1] = pw[0] else msg = 'What is your password for ' strconcat msg username strconcat msg '?' passwordbox msg 'Enter your password' pw[0] = inputstr pw[1] = pw[0] setpassword 'password.dat' username pw[0] endif