Sign in or 

People just like you can add or edit the content on this site. If you want to try editing, but aren't ready to add to this site, try our demo area.
Read more about editing pages at Wetpaint Central.
)
'Returns a collection of collections.End Function
'There's a collection for each row.
'The file is made by saving an Excel spreadsheet as a CSV file.
' Dim cEntries
' Set cEntries = GetCSVCollection("Entries.csv")
Dim asRows, asFieldNames, cRecordSet, i, asFieldValues
Dim cRecord, iFieldCount, j
asRows = Split(GetFileContents(vsFilePath), vbCrLf)
asFieldNames = Split(asRows(0), ",")
Set cRecordSet = CreateObject("Scripting.Dictionary")
For i = 1 To UBound(asRows)asFieldValues = Split(asRows(i), ",")Next
Set cRecord = CreateObject("Scripting.Dictionary")
If UBound(asFieldNames) < UBound(asFieldValues) TheniFieldCount = UBound(asFieldNames) + 1ElseiFieldCount = UBound(asFieldValues) + 1End If
For j = 0 To iFieldCount - 1cRecord.Add Trim(asFieldNames(j)), asFieldValues(j)Next
cRecordSet.add i - 1, cRecord
Set GetCSVCollection = cRecordSet
2buck |
Latest page update: made by 2buck
, Dec 2 2006, 11:27 AM EST
(about this update
About This Update
Edited by 2buck
11 words added view changes - complete history) |
|
More Info: links to this page
|