> > Also, is it really a must to declare variables used in computation to be
> > global in scope? I tried declaring the variable vola1 as local (set vola1 =
> > 0.0) but when i test the value in the message window it returned a
> > value. Why is this?
>
>Don't know about the rest of your query, but as far as I understand it,
>variables only need to be declared global if you intend to pass them from
>one place to another. In other words, if you can finish working with a
>variable inside one handler, then there is no need for a global.
 
Not sure of exactly what you're trying to do or how you're test your variable in message window, but what I usually do is simply use a 'put' statement to check the state of variables.
 
example:
 
on whateverYourFunction
set vola1 = 0.0
do myfunction
put vola1
end whateverYour Function
 
Then check your message window.  This is usually a better way of checking the state of your variables. 
 
If you are passing vola1 as a parameter (hence the subject name), you don't have to declare it global.
 
Hope it helps.  Good luck.
 
Mike Cash
videobred.com


Get your FREE download of MSN Explorer at http://explorer.msn.com

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]) Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to