syntax for copying fields using variable
tob at b-e-s-t.com
tob at b-e-s-t.com
Tue Nov 24 09:45:55 PST 2015
Using fp 5.0.13R4 on Centos 5.4
I wanted to use the syntax below to copy a number of fields from one record to another but get a syntax error.
Is this possible?
Thanks
After opening the two records without any issue
lookup ipd = invprod@ r=free -e
lookup form = f837@ k=kk i=a -nx
I wanted to copy fields 80-120 and 201-400 using a variable loop
ct(3,.0)="79"
nxct1 ? If: ?
Then: ct=ct+"1" ?
1564 ------- - - - - - - - - - - - - - - - -
? If: ct lt "120" ?
Then: ipd(ct)=form(ct);goto nxct1 ?
1565 ------- - - - - - - - - - - - - - - - -
? If: ?
Then: ct="201" ?
1566 ------- - - - - - - - - - - - - - - - -
nxct2 ? If: ?
Then: ct=ct+"1" ?
1567 ------- - - - - - - - - - - - - - - - -
? If: ct lt "401"
Then: ipd(ct)=form(ct);goto nxct2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20151124/d897ee95/attachment.html>
More information about the Filepro-list
mailing list