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

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

Basic4ppc Wishlist Missing any feature?

New, optional parameter for table.loadCSV: the "delimiter character"

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-23-2010, 09:01 AM
Tirs's Avatar
Junior Member
 
Join Date: May 2007
Location: Canyelles (Garraf), Catalonia, Spain
Posts: 12
Default New, optional parameter for table.loadCSV: the "delimiter character"

In the "loadCSV" method we can specify which character is used as a separator (usually "," or ";"), but often these files also come with the strings delimited by quotes (usually double: " ). These quotes (and even the spaces outside them) are imported into the table cells along with the valid text. I think it would be good to implement a new parameter in the method, to specify which delimiter, if any, is used in the CSV file.
__________________
_____
|!rs
Reply With Quote
  #2 (permalink)  
Old 09-24-2010, 01:18 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,694
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

The quotes should be handled properly by LoadCSV. The problem with the specific file you have is the extra space between the fields.
The quotes are actually required in order to allow fields to contain the delimiter character (and also new lines).
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
Catching the "Shift", "right" & "left" keys linum Questions (Windows Mobile) 3 08-21-2009 01:22 PM
Help! How do I make a "between" character? WhiteRussianBC Questions (Windows Mobile) 3 11-08-2008 06:51 PM
calling the device's "Programs" or "settings" screens HarleyM Questions (Windows Mobile) 0 12-05-2007 02:59 AM
Problem with "%" character francisco cobos Questions (Windows Mobile) 4 11-19-2007 09:01 AM
Avoid the "optional resource assembly cannot be found" Erel Code Samples & Tips 1 07-12-2007 10:24 AM


All times are GMT. The time now is 02:26 PM.


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