Pascal : Delphi Length String Command Error -


I am writing a part of the code to read and parse information from them in CSV files (currently only me The beginning is the part of the code that will be read in the header at the beginning of the file. When I try to compile this code, I get an error on the line which takes the length of the line from the file.

The error I am getting is: [Error] MCLR Reminder ( * ): missing operator or semicolon

  While EOF (csvFile) does not start i: = 0; ReadLn (csvFile, line); If lineon = The truth begins to be length: = length (line); // error here while the length> begin 0 dx: = pos (',', line); buffer: = copy (line, 0, dx-1 ); Header [i]: = buffer; line: = copy (line, dx + 1, length); length: = length (line); // end here here; lineon: = wrong; end; end;    

Pascal length and length Area between does not matter ... they change both lenses

variable name, it writes to me function.

Comments