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
Samples and source code included
Should work in all builds of RB from 5.5.5 on up
_______________________________________________
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>