Hi Marcus, getting the same kind of error. In my case, i get two warnings, one with an uppercase C and another with a lowercase f.
My error also occurs on the ReadLn> command.
I've tracked down what the conditions are that cause this:
It is a double quote in the line being read. The character returned is immediately after the first double quote. There is no error on the closing double quote.
In the op's case, it is zero:
"Line: 6
0 not appropriate"
"
020072000"^1^04^UNIT AIR
In my case, the following two lines cause the warning to occur
-- update status record with "
COMPLETED"
-- update status record with "
failed"
I have 16 files in my folder that I read. Two of them cause this warning, and only these same two have double quotes in them.
Here's my code, in case you have any suggestions about that:
Code: Select all
//force script interpreter to ignore spaces.
//If using IGNORESPACES quote strings in {" ... "}
//Let>IGNORESPACES=1
Let>v_tablelist=
Let>v_table_order=
Let>INPUT_BROWSE=2
Input>v_filelist,Select Folder to Inspect,
Concat>v_filelist,\*.*
//get list of files in folder
//MessageModal>v_filelist
GetFileList>v_filelist,file_list
Separate>file_list,;,files
//MessageModal>files_count
//GoTo>theend
//loop through list of files
Let>k=0
Repeat>k
Let>v_line=
Let>k=k+1
//**BREAKPOINT**
Let>j=0
Let>this_file=files_%k%
MessageModal>%k%, %j%, %this_file%
ConCat>v_table_order,%k%
ConCat>v_table_order,COMMA
ConCat>v_table_order,this_file
ConCat>v_table_order,COMMA
GetTime>v_time
ConCat>v_table_order,v_time
ConCat>v_table_order,COMMA
ConCat>v_table_order,CRLF
ReadFile>this_file,numlines
If>numlines_count>0
//read each line
While>v_line<>##EOF##
Let>j=j+1
ReadLn>this_file,j,v_line
//MessageModal>Line is : v_line
// does it have "string"
Position>string.,v_line,1,start_Pos,TRUE
If>start_Pos>0
//MessageModal>line
//**BREAKPOINT**
Position>SPACE,v_line,start_Pos,end_Pos,TRUE
if>end_Pos=0
Position>CRLF,v_line,start_Pos,end_Pos,TRUE
endif
//MessageModal>%start_Pos% and %end_Pos%
If>end_Pos=0
Let>end_Pos=999
Endif
MidStr>v_line,start_Pos,end_Pos,v_table
ConCat>v_tablelist,v_table
ConCat>v_tablelist,CRLF
Endif
EndWhile
Endif
//MessageModal>v_tablelist
Until>k=files_count
Label>theend
UpperCase>v_tablelist,v_final_list
MessageModal>v_final_list
MessageModal>v_table_order
//MessageModal>done!
I'm not sure how to get this in the bug tracker. I'll look around, see if I can.
"A facility for quotation covers the absence of original thought." - Lord Peter Wimsey