Quicky: what's the name of the property to find out if a stack is protected?

Richard Gaskin ambassador at fourthworld.com
Sun Sep 20 14:41:13 EDT 2009


Sarah Reichelt wrote:
> On Sun, Sep 20, 2009 at 8:44 PM, David Bovill wrote:
>> Can't find protected in the dictionary :)
> 
> How about:
> 
>    if the password of this stack is not empty then
>       -- stack is protected
>    end if
> 

If the intended use is in the IDE, it may be helpful to distinguish 
which of the stack that have a password set are currently unlocked. If 
David needs that he can use:

  if the password of stack tStack <> the passKey of stack tStack then ....

password = the encrypted string stored in the stack as the flag to 
determine if it will encrypt its scripts and properties when it writes 
the stackfile to disk

passkey  = what the developer enters in development to be able to edit 
scripts, active only so long as the stack is in memory


--
  Richard Gaskin
  Fourth World
  Revolution training and consulting: http://www.fourthworld.com
  Webzine for Rev developers: http://www.revjournal.com



More information about the use-livecode mailing list