Skip to content

Commit aa89bd2

Browse files
committed
Update importation-examples.md
1 parent 670f4a9 commit aa89bd2

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

docs/examples/importation-examples.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ nav_order: 1
1818

1919
## Import CSV file data
2020

21-
The [example1] shows how you can import all the data from a CSV file using the RFC-4180 standard as paramount.
21+
The [EXAMPLE1] shows how you can import all the data from a CSV file using the RFC-4180 standard as paramount.
2222

23-
#### [example1]
23+
#### [EXAMPLE1]
2424
*Note: the example uses the option `QuotationMode.Critical`, [learn more here](https://ws-garcia.github.io/VBA-CSV-interface/api/enumerations/quotationmode.html).*
2525
```vb
2626
Sub ImportRecords_RFC4180()
@@ -39,9 +39,9 @@ End Sub
3939

4040
## Import top 10 records from a CSV file into a VBA array
4141

42-
The [example2] shows how you can import the Top 10 records from a CSV file using the RFC-4180 standard as paramount.
42+
The [EXAMPLE2] shows how you can import the Top 10 records from a CSV file using the RFC-4180 standard as paramount.
4343

44-
#### [example2]
44+
#### [EXAMPLE2]
4545
*Note: the example uses the option `QuotationMode.Critical`, [learn more here](https://ws-garcia.github.io/VBA-CSV-interface/api/enumerations/quotationmode.html).*
4646
```vb
4747
Sub ImportTopTenRecords_RFC4180()
@@ -58,9 +58,9 @@ Sub ImportTopTenRecords_RFC4180()
5858
Set CSVix = Nothing 'Terminate the current instance
5959
End Sub
6060
```
61-
The [example3] accomplishes the same task of the *example1*, the difference is that a temporary variable is used to store the CSV file's content instead of use the `OpenConnection` method. Also, the *example3* shows how to omit the CSV's headers.
61+
The [EXAMPLE3] accomplishes the same task of the [EXAMPLE1], the difference is that a temporary variable is used to store the CSV file's content instead of use the `OpenConnection` method. Also, the [EXAMPLE3] shows how to omit the CSV's headers.
6262

63-
#### [example3]
63+
#### [EXAMPLE3]
6464
*Note: the example uses the option `QuotationMode.Critical`, [learn more here](https://ws-garcia.github.io/VBA-CSV-interface/api/enumerations/quotationmode.html).*
6565
```vb
6666
Sub ImportTopTenRecords_RFC4180()
@@ -79,9 +79,9 @@ End Sub
7979
```
8080

8181
## Import ten middle records from a CSV file into a VBA array
82-
The [example4] shows how you can import 10 middle records from a CSV file using the RFC-4180 standard as paramount.
82+
The [EXAMPLE4] shows how you can import 10 middle records from a CSV file using the RFC-4180 standard as paramount.
8383

84-
#### [example4]
84+
#### [EXAMPLE4]
8585
*Note: the example uses the option `QuotationMode.Critical`, [learn more here](https://ws-garcia.github.io/VBA-CSV-interface/api/enumerations/quotationmode.html).*
8686
```vb
8787
Sub ImportTenMiddleRecords_RFC4180()
@@ -104,11 +104,11 @@ End Sub
104104

105105
This is the fastest way to work with CSV files because the CSV interface class don't check the syntax given at the RFC-4180 standard. If your CSV files has trailing spaces, or you don't know if it holds a field needing to be escaped, please [reset the config options](https://ws-garcia.github.io/VBA-CSV-interface/api/methods/resettodefault.html) for the current instance to avoid incorrect results.
106106

107-
The [example5] shows how you can import all the data from a CSV file without checking the syntax given at the RFC-4180 standard. The file to be parsed has neither field needing to be escaped.
107+
The [EXAMPLE5] shows how you can import all the data from a CSV file without checking the syntax given at the RFC-4180 standard. The file to be parsed has neither field needing to be escaped.
108108

109109
See also
110110
:[QuotationMode](https://ws-garcia.github.io/VBA-CSV-interface/api/enumerations/quotationmode.html), [EscapeType](https://ws-garcia.github.io/VBA-CSV-interface/api/enumerations/escapetype.html).
111-
#### [example5]
111+
#### [EXAMPLE5]
112112
*Note: the example uses the option `QuotationMode.All`, and `EscapeType.NullChar`*
113113
```vb
114114
Sub ImportRecords()
@@ -126,11 +126,11 @@ Sub ImportRecords()
126126
Set CSVix = Nothing 'Terminate the current instance
127127
End Sub
128128
```
129-
The [example6] shows how you can import all the data from a CSV file without checking the syntax given at the RFC-4180 standard. In the file to be parsed, all fields need to be escaped.
129+
The [EXAMPLE6] shows how you can import all the data from a CSV file without checking the syntax given at the RFC-4180 standard. In the file to be parsed, all fields need to be escaped.
130130

131131
See also
132132
:[QuotationMode](https://ws-garcia.github.io/VBA-CSV-interface/api/enumerations/quotationmode.html), [EscapeType](https://ws-garcia.github.io/VBA-CSV-interface/api/enumerations/escapetype.html).
133-
#### [example6]
133+
#### [EXAMPLE6]
134134
*Note: the example uses the option `QuotationMode.All`, and `EscapeType.DoubleQuotes`*
135135
```vb
136136
Sub ImportRecords()

0 commit comments

Comments
 (0)