Help with Read() error

Walter Vaughan Jr wvaughan at steelerubber.com
Thu Dec 3 10:48:49 PST 2020


I get sorta wigged out when I have characters that need to be escaped to deal with
Instead of using literal "=" symbols that are probably confusing the parser, why can't you use  chr(61) instead (or should it be chr("61")  or set a variable of eq = chr(61). 




-----Original Message-----
From: Filepro-list <filepro-list-bounces+wvaughan=steelerubber.com at lists.celestial.com> On Behalf Of Richard Kreiss via Filepro-list
Sent: Thursday, December 3, 2020 1:34 PM
To: 'filepro-list at lists.celestial.com' <filepro-list at lists.celestial.com>
Subject: RE: Help with Read() error

I have two similar processing table which use Open() and read() to retrieve information in a file. Currently the original file passes the read() statement without an issue.  After a few changes to the newer file, well passed the line for the read() I am nowe getting a syntax error pointing to the "R" in read.

The error reads CC=READ(aa,ab)
                                   ^
Invalid Argument,

Process contains a synatax error art position indicatred

CC is not used in any other processing table and this program ran prior to my modifying the  processing to get the values from AB which contains the complete value in the file.

The processing table ran the syntax check without a problem until I added some program line to get the values of the fields sent in the file. The end of field marker is an &, I am looking for the value after the = sign and before the &. I am using qq=instr(ab,"=") to get the starting location of the value needed using qq+"1" and qr=instr(ab,"=") to get the ending value. There are at lead 8 "fields" that need to be "read".  If have a long variable defined as fieldcont("field Content") to hold the next values after removing the field just read.  My programming is working but there may be a better way to accomplish the same thing. I am open to changing my programming.  Currently AB contains the complete file information.  I can get this back as each filed as a separate line. However, I am not sure how to move through a file which uses a new line for each field.  Any suggestion will be greatly appreciated on both issues.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 14239 bytes
Desc: not available
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20201203/40533e6b/attachment.bin>
_______________________________________________
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