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

Jay R. Ashworth jra at baylink.com
Mon Jul 19 13:28:42 PDT 2004


On Mon, Jul 19, 2004 at 03:00:22PM -0400, Kenneth Brody wrote:
> 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

Ok, you're the second person to tell him something he already knows...

It would probably be more useful merely to limit the response to the
query: "Why do you think mapping the fields to an array is so much
code, John?"  :-)

Cheers,
-- jra
-- 
Jay R. Ashworth                                                jra at baylink.com
Designer                          Baylink                             RFC 2100
Ashworth & Associates        The Things I Think                        '87 e24
St Petersburg FL USA      http://baylink.pitas.com             +1 727 647 1274

	"You know: I'm a fan of photosynthesis as much as the next guy,
	but if God merely wanted us to smell the flowers, he wouldn't 
	have invented a 3GHz microprocessor and a 3D graphics board."
					-- Luke Girardi


More information about the Filepro-list mailing list