passKey

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the passKey of <stack> to <passwordString>
Associationsstack
Summary

Enters a password for a locked stack, letting the user modify the stack.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the passKey of this stack to field "Challenge"
Values
NameTypeDescription
Value

The passKey of a stack is a string. By default, the passKey property of newly created stacks is set to empty.

RelatedKeyword: string
Property: password, script
Function: stacks
Glossary: property, unlock, dialog box, handler
Object: stack
Description

Use the passKey property to unlock a password -protected stack.

If a stack has been locked against modification with a password, you can set the passKey property of the stack to the correct password to unlock the stack. Setting the passKey property is the script equivalent of typing the password into LiveCode's password dialogbox. Use this property if you want to perform password authentication in a handler.

Note: Script only stacks are unable to be password protected. In order to password protect a script only stack use the following commands.

set the scriptOnly of stack "Secrets" to false
set the password of stack "Secrets" to field "Password"