Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

problems with some database in .csv format

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-07-2007, 07:17 AM
Junior Member
 
Join Date: May 2007
Posts: 41
Default problems with some database in .csv format

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
Reply With Quote
  #2 (permalink)  
Old 11-07-2007, 09:15 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Make sure that the csv file doesn't include any empty lines at its end.
Please upload the file if it doesn't help.
Reply With Quote
  #3 (permalink)  
Old 11-07-2007, 01:54 PM
Junior Member
 
Join Date: May 2007
Posts: 41
Default

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

Thank you very much
Reply With Quote
  #4 (permalink)  
Old 10-15-2009, 12:44 PM
Newbie
 
Join Date: Sep 2009
Posts: 3
Default

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 ?
Reply With Quote
  #5 (permalink)  
Old 10-15-2009, 06:42 PM
RandomCoder's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire, UK
Posts: 623
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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
__________________
"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PPC Help files format JamesC Questions (Windows Mobile) 4 07-24-2008 12:36 PM
Copy Record from one database to another database. mozaharul Questions (Windows Mobile) 0 07-15-2008 04:47 AM
Database format Nycran Questions (Windows Mobile) 5 11-06-2007 05:42 AM
How to convert an Access database to a sqlite database Peter Code Samples & Tips 5 07-24-2007 03:20 PM
Sentece Format manu Questions (Windows Mobile) 2 04-29-2007 08:24 PM


All times are GMT. The time now is 05:44 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0