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.

Search Data in CSV-File and show in a table and later in a form

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-16-2009, 09:53 AM
Basic4ppc Veteran
 
Join Date: Jul 2008
Location: Schwäbisch Gmünd
Posts: 353
Default Search Data in CSV-File and show in a table and later in a form

Hi forum,

i have a little problem, maybe someone can help me.

I want to search Data out of a CSV-Table and show them first in a table and later on the form. This application should have the following features:

1) Searching over a mask in the CSV-File. It should be possible to search for fragments in the text in all fields ("*").

2) Show the found data in a table, sorted by ABC or Numbers (sort.asc)

3) Should be able to choice one dataset out of the table (maybe the best way is to use "listview.dll" from Filippo for that?)

4) show dataset in the form1

I attached a small example.

If there is anybody who can give me tips - THANK YOU in advance!
Attached Files
File Type: sbp Suche in einer CSV-Datei.sbp (2.0 KB, 16 views)
__________________
JOTHA | Greetz from the Schwabenländle.
Pocket-PC: HTC HD2 (Dual-Boot WindowsMobile 6.51 + Android 2.2 Froyo)
Reply With Quote
  #2 (permalink)  
Old 05-16-2009, 10:32 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

How large is the CSV file?
You can load it to a table and then use Table.Filter and Table.TableSort to arrange the data.
You can also convert the CSV file to a SQLite db which is more powerful.
Reply With Quote
  #3 (permalink)  
Old 05-16-2009, 11:41 AM
Basic4ppc Veteran
 
Join Date: Jul 2008
Location: Schwäbisch Gmünd
Posts: 353
Default

Hello Erel,

thank you for your fast reaction.

Quote:
Originally Posted by Erel View Post
How large is the CSV file?
The CSV file is about 10.000 datasets (lines) in 10 rows.
Quote:
You can load it to a table and then use Table.Filter and Table.TableSort to arrange the data.
I know about this solution, but it would take too long time to load the file and to search the "one" data which is needed.
Quote:
You can also convert the CSV file to a SQLite db which is more powerful.
1) The data could change every week or every 14 days, because there is a pricing list which includes welding-metal and the prices are different sometimes. So I had to convert the data all the time and it this would be not very comfortable.

2) For SQL-Programming i need more knowledge ...

I think, the way to search the data and fill a table, then select one out of it might be the best way for the moment, isn´t it?

THANKS!
__________________
JOTHA | Greetz from the Schwabenländle.
Pocket-PC: HTC HD2 (Dual-Boot WindowsMobile 6.51 + Android 2.2 Froyo)
Reply With Quote
  #4 (permalink)  
Old 05-16-2009, 12:53 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

I recommend you to learn the basics of SQL. It is not too complicated and will allow you to do many things with your data.
There are many resources available online about SQL. Here is one: SQL Syntax
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
Dumping Data form device to server using Wi-Fi mozaharul Questions (Windows Mobile) 9 04-20-2010 08:31 AM
adding data to table gjoisa Questions (Windows Mobile) 6 07-11-2009 04:33 PM
Unable to show £ sybol in table Graley Bug Reports 4 09-26-2008 08:42 AM
multipart/form-data example bish0p Questions (Windows Mobile) 0 09-10-2008 10:26 PM
hung when using search in help file while in debug mode adukes Bug Reports 2 07-02-2007 05:37 PM


All times are GMT. The time now is 04:23 AM.


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