[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Restrict a Variable
- Subject: Re: Restrict a Variable
- From: Steve Cavill <scavill@BRIO.COM.AU>
- Date: Mon, 1 May 2000 13:37:50 +1000
Make sure it's local.
You can either declare the procedure as local (which means all variables in
it are treated as local), or if it has parameters then it is implicitly
local.
e.g.
begin-procedure fred local
or
begin-procedure fred(parm1)
both create a local procedure, and any variables used in the procedure are
local variables. The local variables cease to exist when the procedure
completes executing. Any variable with the same name used elsewhere in your
program are different variables.
Steve.