syntax for copying fields using variable

Chris Rendall crendall at teamind.com
Tue Nov 24 10:03:04 PST 2015


I think the issue is "form" is a keyword in filePro.  Name your lookup something that isn't a keyword and see if that passes syntax.

--- Chris

-----Original Message-----
From: Tim OBrien via Filepro-list [mailto:filepro-list at lists.celestial.com] 
Sent: Tuesday, November 24, 2015 11:46 AM
To: filepro-list at lists.celestial.com
Subject: syntax for copying fields using variable


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>
_______________________________________________
Filepro-list mailing list
Filepro-list at lists.celestial.com
Subscribe/Unsubscribe/Subscription Changes http://mailman.celestial.com/mailman/listinfo/filepro-list


More information about the Filepro-list mailing list