![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
thnx,
I was wondering whether anyone had a routine which regardless of the parameters (which are read at runtime and passed through) could read a csv file. I am not too familiar with SQL myself, so I hope someone is..... Marc |
|
||||
|
You don't need to understand SQL to use the table control.
The table control is very simple to use and will load the CSV file directly into the table cells. All you then need to do is either filter the table or just extract the desired cells. Regards, RandomCoder
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD. Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD. "Defeat never comes to any man until he admits it."Josephus Daniels |
|
||||
|
Quote:
![]() You would be best to use SQL, although my understanding is that a table will still be required for SQL to utilise. My approach is usually to try and understand a few examples of other peoples work and then tailor it to my own needs. Here is a link to an example that Erel did some time ago, maybe it will help you... SQLite Viewer Regards, RandomCoder
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD. Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD. "Defeat never comes to any man until he admits it."Josephus Daniels |
|
|||
|
@ Erel
Hi erel, I want to store a table containing numbers. The program computes the rank of a hand in poker with 7 cards, taken the best 5 out of it (Texas Holdem). Because there are 133784560 combinations with 7 cards out of 52, it takes too long to compute the hands, especially because I want to run simulations with dealing a lot of hands (Monte Carlo simulation) and compute the probability of winning with that certain hand against other random AI-hands. Therefore I want to generate a table and compare the hand to an index (with a unique longinteger) and retrieve the value of the hand. Marc |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| read and delete sms...how? | Byak@ | Questions & Help Needed | 1 | 10-12-2008 07:42 PM |
| PPC Help files format | JamesC | Questions & Help Needed | 4 | 07-24-2008 01:36 PM |
| XML file read | stratus | Questions & Help Needed | 8 | 06-20-2008 04:03 PM |
| How to know if a PM was read!? | Cableguy | Forum Discussion | 0 | 05-12-2007 10:17 PM |
| Read a row (SQL) | Nkieto | Questions & Help Needed | 2 | 05-03-2007 05:29 PM |