[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Load-Lookup



Lookups are global.  The underscore prefix is for variables only.
If you used the correct syntax for the Lookup command you might have more luck.

ie

lookup ArrayName $Invar $OutVar

(SQR is probably looking for a lookup table called  'name=ArrayName')

-----Original Message-----
From: Greg Hesla [mailto:ghesla@CIMACONSULTING.COM]
Sent: Thursday, 12 August 1999 3:37 AM
To: Multiple recipients of list SQR-USERS
Subject: Load-Lookup


OK, here's a question for ya'll...

I am using a lookup table in my SQR program. I have a global procedure (no
"Local" keyword, no parameters) that loads my lookup table. I have a local
procedure (accepts 3 variables, 2 of which are passed back) that actually
performs the lookup. Here's the question: Is the localized procedure going
to be able to find the lookup table? Do I need to change the lookup command
from
    Lookup name=ArrayName $Invar, $OutVar
to
    Lookup name=_ArrayName $Invar $OutVar

Any insight is appreciated.

Greg Hesla
ghesla@cimaconsulting.com
Cima Consulting. Group
www.cimaconsulting.com