fieldnum() problem
Kenneth Brody
kenbrody at gmail.com
Thu Aug 23 07:31:01 PDT 2018
On Thu, Aug 23, 2018 at 12:15 AM Richard Kreiss via Filepro-list
<filepro-list at lists.celestial.com> wrote:
[...]
> then: lookup back = (backfile) r-=rn -np
[...]
> then: back(bd)=@td - Post the current date to backup record - syntax error pointing at back(bd)
>
> if:
> Then: back(bw)=getenv("username") - Syntax error points at (bw)
>
> Note that the syntax points to the closing ) of back().
[...]
You cannot use a variable as a subscript to a lookup. Alias an array
to that lookup, and then use the array instead:
dim backfile[999]:back[1]
...
backfile[bw] = getenv("username")
More information about the Filepro-list
mailing list