Custom Properties Problem
David Burgun
dburgun at dsl.pipex.com
Tue Nov 1 12:02:09 EST 2005
Hi,
Actually I had to move the preOpenStack handler into the script of card 1.
Sorry, the real function does return a value, I just cut all the
unecessary code out for posting on the list.
I think what was happening was that the wrong stack was being
operated on in the preOpenStack handler. I think that "me" was
refering to the stack that caused the stack in question to open.
The problem with using "this stack" apposed to "me" is that if a
handler is called from another stack then "this stack" refers to the
calling stack. I use "me" to refer to the stack that the code is
running in as per the docs. Is this correct?
Seems to work now I have put it into the card script.
All the Best
Dave
>Hi Dave,
>
>1. Put your initialization into an openStack handler, not a
>preOpenStack handler to make it working.
>2. A function is supposed to return a result: a handler might be
>more appropriate here ;-)
>
>on Initialize
> set the customKeys of me to empty -- of this stack
>end Initialize
>
>on openStack
> Initialize
> pass openStack
>end openStack
>
>Best Regards from Paris,
>
>Eric Chatonet.
>
>Le 1 nov. 05 à 16:22, David Burgun a écrit :
>
>>Hi,
>>
>>I have the following in a Stack Script:
>>
>>function Initialize
>>set the customKeys of me to empty
>>end Initialize
>>
>>
>>on preOpenStack
>>get Initialize()
>>pass preOpenStack
>>end preOpenStack
>>
>>I save and close the stack and then reopen it. The preOpenCard
>>handler runs but when I look at the custom properties of the stack
>>in the property inspector, they have not been deleted!
>>
>>Am I doing something wrong?
>>
>>I also tried the following in the message box:
>>
>>set the customKeys of stack "StackX" to empty
>>
>>And this didn't work either.
>>
>>Thanks in advance
>>Dave
>
>----------------------------------------------------------------
>So Smart Software
>
>For institutions, companies and associations
>Built-to-order applications: management, multimedia, internet, etc.
>Windows, Mac OS and Linux... With the French touch
>
>Free plugins and tutorials on my website
>----------------------------------------------------------------
>Web site http://www.sosmartsoftware.com/
>Email eric.chatonet at sosmartsoftware.com/
>Phone 33 (0)1 43 31 77 62
>Mobile 33 (0)6 20 74 50 86
>----------------------------------------------------------------
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list