Syntax error on array index
Brian K. White
brian at aljex.com
Fri Jan 22 13:15:58 PST 2010
Barry Wiseman wrote:
> 5.0.15 on linux
>
> I was asked to debug why rcabe reports the following error (and then SEGV's when you press Enter):
>
> *** A filePro Error Has Occurred ***
>
> Line Number: 1934
>
> code(g)="F";dscr(h)=""{sj; amt(j)=isa ;ext(k)=isa ;glc(l)=iqi
> ^
> Process contains a syntax error at position indicated.
>
>
> glc is an array mapped to a lookup, l is (3,.0), iqi is an uncast DECLARE. Actually the glc(l) was the problem, even glc(l)="" gave the same error.
>
> Long story short, the following change fixes it.
>
> code(g)="F";dscr(h)=""{sj; amt(j)=isa ;ext(k)=isa ;glc(l )=iqi
> ^^^^
>
> Is this a known bug in 5.0.15? Without the space, what does rcabe think he's seeing? The tags "glc" and "l" are both quite unambiguous in the program. Why don't the similar "amt(j)" and "ext(k)" throw errors?
Ambiguity with ssociated fields "l)" ?
--
bkw
More information about the Filepro-list
mailing list