custom prop by 1's?

Richard Gaskin ambassador at fourthworld.com
Wed Apr 13 00:40:48 EDT 2005


Kathy Jaqua wrote:
> OK "1" more time, Maybe this time I will get it.
> 
> I set a customProp in my stack  called cEnterToDoProp
> This is the number of time the Stack is opened. (Like
> how hard is this?:)
> 
> in a preOpenStack:
> 
> get the cEnterToDoProp of this stack
>  put it into tCount
> add 1 to tCount
>   set the cEnterToDoProp of this stack to tCount
> 
> This adds 2 not 1 to my total.
> 
> How do I add 1 to my total =cEnterToDoProp.

It works on mouseUp in a button, so my guess is that something is 
sending a second preOpenStack handler.

You could test that theory by adding this to the beginning of the 
preOpenStack handler:

    answer the executionContexts

If you see the answer box a second time you know you've found a problem, 
and the executionContexts will tell you where the message came from.

--
  Richard Gaskin
  Fourth World Media Corporation
  __________________________________________________
  Rev tools and more: http://www.fourthworld.com/rev


More information about the use-livecode mailing list