I'm getting a syntax error with IMPORT...Why?
Boaz Bezborodko
boaz at mirrotek.com
Mon Feb 14 11:19:26 PST 2011
On 2/14/2011 1:15 PM, Jeff Harrison wrote:
> ----- Original Message ----
>
>> From: Boaz Bezborodko<boaz at mirrotek.com>
>> To: "Filepro-List at Lists. Celestial. Com"<filepro-list at lists.celestial.com>
>> Sent: Mon, February 14, 2011 12:25:29 PM
>> Subject: I'm getting a syntax error with IMPORT...Why?
>>
>> I'm not sure why I am getting a syntax error, but here it is together
>> with the code:
>>
>>
>> *** A filePro Error Has Occurred ***
>>
>> Line Number: 23
>>
>> caltag(4) ne "Dropship Vendor Notification Report"
>> ^
>> Process contains a syntax error at position indicated.
>>
>>
>> 22 ------- - - - - - - - - - - - - - - - -
>> ◄ If: ◄
>> Then: GOSUB ImpCall ◄
>> 23 ------- - - - - - - - - - - - - - - - -
>> ◄ If: caltag(4) ne "Dropship Vendor Notification Report" ◄
>> Then: BEEP ; SHOW "@This is not a proper Vendor Notification Report...Pr>
>> 24 ------- - - - - - - - - - - - - - - - -
>> ◄ If: ◄
>> Then: RETURN ◄
>> 25 ------- - - - - - - - - - - - - - - - -
>> ImpCall◄ If: ◄
>> Then: ◄
>> 26 ------- - - - - - - - - - - - - - - - -
>> ◄ If: ◄
>> Then: IMPORT WORD caltag=("/USERS/OFFICE/Import-documents/ "{File_Name) ◄
>> 27 ------- - - - - - - - - - - - - - - - -
>> ◄ If: ◄
>> Then: Line_Num=Line_Num+"1" ◄
>> 28 ------- - - - - - - - - - - - - - - - -
>> ◄ If: ◄
>> Then: RETURN ◄
>>
>> P.S. Belated Happy B-Day, Ken. Thanks for a program that makes doing
>> data-processing easy.
>> _______________________________________________
> Boaz, I don't see where you are checking for end-of-file i.e. when the import
> line runs, and there are no more records to process. You should check for this
> with a "not caltag", and then take the appropriate action in your scenario for
> EOF.
>
> Jeff Harrison
> jeffaharrison at yahoo.com
> Author of JHExport and JHImport
>
>
>
> ____________________________________________________________________________________
> Get your own web address.
> Have a HUGE year through Yahoo! Small Business.
> http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
I'm still in the process of writing the code. This is occurring when
Filepro is saving and compiling the code.
It's not the first time I'm doing IMPORT programming, but this is the
first time I've come across an error for what looks to me to be a
perfectly acceptable syntax.
More information about the Filepro-list
mailing list