On 11/28/06 12:36 AM, "Jim Ault" <[EMAIL PROTECTED]> wrote:
> On 11/27/06 10:03 PM, "John Vokey" <[EMAIL PROTECTED]> wrote:
>
>> All,
>>One of my students got caught by the following in her stack:
>>
>>At the top of the card script, she declared some variables local
>> to the scripts of
On 11/27/06 10:03 PM, "John Vokey" <[EMAIL PROTECTED]> wrote:
> All,
>One of my students got caught by the following in her stack:
>
>At the top of the card script, she declared some variables local
> to the scripts of that card, as we always we do. For one of these
> variables, she did
Hi John,
Actually the behavior is correct. If you declare a local variable
OUTSIDE the other handlers of an object, it will stay persistent and
is accessible to all handlers/functions for that object.
This has some nifty benefits. It allows you to create persistent
variables, which aren't global
All,
One of my students got caught by the following in her stack:
At the top of the card script, she declared some variables local
to the scripts of that card, as we always we do. For one of these
variables, she did not initialise it in any way. However, the use of
that variable is al