Hello List,
I'm trying to set mSetCriteria from a list named gGeokeyList from within a repeat
loop. An example of what the list might look like is [2, 5, 7]. I comment the line at
which I get an Index out of range error. Can anyone see what I'm doing incorrectly?
on mouseUp
closeTables
At 9:19 -0400 2001_07_31, Gene Fritzinger wrote:
set gTable = new(Xtra V12table, mGetRef(gDB), regmast)
CheckV12Error()
repeat with var in gGeokeyList
x = gGeokeyList[var] --THIS IS WHERE I GET AN INDEX OUT OF RANGE ERROR
would that be: x = gTable[var]
Jakob
[To remove
repeat with var in gGeokeyList
Hi Gene,
I'm pretty new to Lingo but this the first time I've seen snip var in
list/snip syntax. I checked the Lingo dictionary under in and perhaps
thats the problem, we don't have this syntax in Lingo. It would also make
sense of the error.
You'd need to use
Thanx Irv,
This now works with only one small problem. When it loops from 2 to 4 and then 4 to 7,
it doesn't add a return in the field so the field displaying the results looks like
this:
SNIP from field member
New York Region
New England Region
You need to add a return character yourself. Change:
put mGetSelection(gTable, LITERAL, 1, mSelectCount(gTable), ,
, return, DESCRIPT) after field RegionSelectedGeographies
to:
put mGetSelection(gTable, LITERAL, 1, mSelectCount(gTable), ,
, return, DESCRIPT) RETURN after field
in the
list), but the next time thru, var = 5 (which is outside the range of the
list)...
morgan-
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Gene Fritzinger
Sent: Tuesday, July 31, 2001 6:19 AM
To: [EMAIL PROTECTED]
Subject: lingo-l Index out of range error