Using a variable as a field number

Kenneth Brody kenbrody at bestweb.net
Mon May 10 12:43:42 PDT 2004


Keith Hamilton wrote:
> 
> I’m trying to read a textfile and updating a certain field number from the
> textfile..  How would I go about using a variable for a field number like
[...]
>        Then: lookup ord = EORDER  R=RN -n                                      þ
[...]
>        Then: ord(uo(2)) = uo(3)
[...]
> How would I go about making uo(2) a field number so filePro knows what to do
> with it?

Alias an array to the "ord" lookup, and use the array:

    dim a_ord(999):ord[1]
[...]
    a_ord[uo(2)] = uo(3)

-- 
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody        | www.hvcomputer.com |                             |
| kenbrody at spamcop.net | www.fptech.com     | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+



More information about the Filepro-list mailing list