Is there anyway.. If not it would be a nice wishlist feature.

Kenneth Brody kenbrody at bestweb.net
Mon Jul 19 12:00:22 PDT 2004


John Hemmer wrote:
[...]
> Given that F contains the field number and
> V is the new value to put in the field, I was
> hoping I could update he field by codes such
> 
> as:  (F)=V ,   but I get a syntax error when I
> do a syntax check with dcabe.
> 
> I know I can accomplish what I want to do
> with MID commands and by equivalencing
> the real fields to an array, but I was hoping
> I would not need that much code.
> 
> Is there a simpler way to accomplish this.

I'm not sure what you mean by needing MID() to accomplish this.  Simply
alias an array to field 1, and reference the fields through that array:

    dim fields[999]:1   ' Replace "999" as needed
    ...
    fields[f] = v

-- 
+-------------------------+--------------------+-----------------------------+
| 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