record number in free record lookup

Kenneth Brody kenbrody at spamcop.net
Fri Feb 3 07:36:08 PST 2012


On 2/3/2012 9:06 AM, scooter6 at gmail.com wrote:
> I have a process that is adding a record to a file and I need to capture
> the record number that is being added
> i.e.
>
> If = 6 gt @td
> Then = lookup new = file   r=free   -e
>
> Then = ce(10,*)=new(@rn)

Well, I would use (8,.0) rather than (10,*), but either will work.,

> I need 'ce' equal to the record number that is getting added to 'file' so I
> can do another free lookup that needs
> the newly created record number in 'file'
>
> Is this possible?

Yes.  Use "lookupname[@rn]".

> I have tried setting ce after I do a 'write' new but that didn't work either

DDW.

-- 
Kenneth Brody


More information about the Filepro-list mailing list