On 29/06/07, Jim Ault <[EMAIL PROTECTED]> wrote:
I am a bit confused.. why would you pass a param then set it to empty?
or establish the param and declare it as a local, as you do later?
What is the benefit?
Finally - found a reason :)
Call by references ! I quite often in repeat loops use a call-by-reference
command to increment (or modify) some value. If you do not implicity declare
the variable you get a nasty error when the repeat loop is not executed
because something is empty.... an example may help.
There may be other examples, but take this simplified script:
on mouseUp
repeat 0
addAnA string
end repeat
put string
end mouseUp
on addAnA @string
put "a" after string
end addAnA
This does not result in an empty string, but "string"
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution