[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
[sqr-users] Re: Globals in Local Procedures
On Tue, Dec 31, 2002 at 05:40:10PM -0800, Alexander, Steve wrote:
> I know I can refer to global variables within a local procedure by using
> #_var and $_var. It also seems possible to refer to database columns as
> &_ALIAS.FIELD. Is it possible to refer to arrays?
Actually, arrays are _always_ global -- so you just refer to them by
their name (with no "_") in either local or global contexts.
(Unfortunately, this also means that you can't create a local array, so
there is no way to "protect" an array from use elsewhere in your
program....)
Nathan
----------------------------------------------------------------------------
Nathan Stratton Treadway | nathanst@ontko.com | Mid-Atlantic region
Software consulting services | Ray Ontko & Co. | http://www.ontko.com/
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users