problems with some database in .csv format

Discussion in 'Questions (Windows Mobile)' started by francisco cobos, Nov 7, 2007.

  1. francisco cobos

    francisco cobos Member Licensed User

    Hello,

    I have the following problems with some database in .csv format:
    Wen I run the project, apears this message:
    Table1.loadCSV("file",";",true)
    Length cannot be less than zero, parameter name: length, continue?

    The thing is that if I answer "yes", the table is loaded perfectly and the program works without problems. Also, if I save the table with "Table1.saveCSV" there is no problem anymore...

    It is a real problem or is a bug?

    Thank you for your help
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Make sure that the csv file doesn't include any empty lines at its end.
    Please upload the file if it doesn't help.
     
  3. francisco cobos

    francisco cobos Member Licensed User

    Ok, this is the solution, it was an "invisible" empty line at the end of the file!

    Thank you very much
     
  4. fwc320

    fwc320 New Member

    And what about a csv file downloaded from a web site that can contain (or not...) empty lines at the end ? Is there a way to avoid this error message ?
     
  5. RandomCoder

    RandomCoder Well-Known Member Licensed User

    I had this problem and my way of solving it was to use an error lable to catch the fault but then proceed as normal.

    Regards,
    RandomCoder
     
Loading...