Thanks Norman!
At 6:36 PM -0700 12/11/06, Norman Palardy wrote:
I've updated my CSV parser. The event based parser has had a few bugs fixed.
Also part of this update is a new database-like one that mimic's the
CSV plugin in many ways.
I needed this for UB software and created this for REALbasic.
Now you can write code that is very similar to what you would have
had for the CSV plugin
dim f as FolderItem
dim rs as CSVRecordSet
rs = new CSVRecordSet(f) // this creates and opens the recordset
while rs.eof <> true
s = ""
for i = 1 to rs.FieldCount // note that a CSV file can have a
different number of field on each row
s = rs.idxField(i) // note that "fields" are ALWAYS strings
// field names make no sense for a lot of CSV files
next
rs.MoveNext // supports the same move next syntax
wend
rs.MoveFirst // yes you can rewind it !
while rs.eof <> true
for i = 1 to rs.FieldCount
s = rs.idxField(i)
next
rs.MoveNext
wend
--
Cheers,
Dr Gerard Hammond
MacSOS Solutions
http://www.macsos.com.au
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>