I'm getting a syntax error with IMPORT...Why?
Jeff Harrison
jeffaharrison at yahoo.com
Mon Feb 14 10:15:18 PST 2011
----- 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
More information about the Filepro-list
mailing list