Using a variable as a field number

Keith Hamilton khamilton at ex-cell.com
Mon May 10 12:28:46 PDT 2004


Well I did do:

	RF = uo(2)
	Ord(RF) = uo(3)

And filePro states

	ord(RF) = uo(3)
      ^
	Process contains a syntax error at position indicated.?


-----Original Message-----
From: filepro-list-bounces at lists.celestial.com
[mailto:filepro-list-bounces at lists.celestial.com] On Behalf Of Jean-Pierre
A. Radley
Sent: Monday, May 10, 2004 2:24 PM
To: FilePro Mailing List
Subject: Re: Using a variable as a field number

Keith Hamilton propounded (on Mon, May 10, 2004 at 02:05:30PM -0500):
| 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
| 
|  
| 
|  
| 
| @menu  þ If:
|        Then: import ASCII uo="/appl/fp/import/orderupdate" R=\n F=~
|   2  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
-
|        Then: RN(10, .0) = uo(1)
|   3  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
-
|        Then: lookup ord = EORDER  R=RN -n
|   4  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
-
|        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?

aa=uo(2), for example??

How does turning it into a dummy field, as I just did, or even a real
field, result in "telling filePro what to do with it"?  

-- 
JP
_______________________________________________
Filepro-list mailing list
Filepro-list at lists.celestial.com
http://mailman.celestial.com/mailman/listinfo/filepro-list






More information about the Filepro-list mailing list