|
From: | Hall, Benjamin |
Subject: | RE: global variables |
Date: | Mon, 24 May 2004 09:31:18 -0400 |
To get
your function to recognize the global x -- as opposed to creating its own local
variable x, you must first tell it so.
function test
global
x
y = x
+ 1
end
should
do what you want
|
[Prev in Thread] | Current Thread | [Next in Thread] |