simple local variable question

Christopher Mitchell chrism at lumin.us
Fri Feb 20 19:55:03 EST 2004


Howdy,

I'm declaring some local variables at the top of a card script that I 
need to use in several handlers... here is a simplified recipe question 
that will help me understand why I'm not able to access the values I'm 
assigning to them:

--card script begins here

local rotAngle
put 20 into rotAngle

on mouseUp
    answer rotAngle
end mouseUp

--

My question is, why does this not put up an answer dialog with "20" in 
it? the dialog that comes up is empty.

Thanks,
Chris



More information about the use-livecode mailing list