Skip to content

Commit dedca82

Browse files
committed
Update CSVinterfaceTest.bas
1 parent ac50e3d commit dedca82

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/CSVinterfaceTest.bas

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@ Sub Test_Import()
44
Dim CSVix As CSVinterface
55
Dim s As Double, e As Double, H As Double
66
Dim fileName As String, i As Single
7-
7+
Dim tmpCSV As String
8+
89
Set CSVix = New CSVinterface
910

10-
fileName = ThisWorkbook.path & "\Demo_400k_records.csv"
11+
fileName = "C:\Demo_400k_records.csv"
12+
tmpCSV = CSVix.GetDataFromCSV(fileName)
1113

1214
H = 0#
1315
For i = 1 To 10
1416
s = Timer
15-
Call CSVix.OpenConnection(fileName)
16-
Call CSVix.ImportFromCSV
17+
Call CSVix.ImportFromCSVString(tmpCSV)
1718
e = Timer
1819
H = H + (e - s)
1920
Next i

0 commit comments

Comments
 (0)