CSVDQ() |
![]() ![]() ![]() |
The CSVDQ() function dequotes a CSV (comma separated variable) string.
Format
CSVDQ(string {, delimiter})
where
The CSVDQ() function dequotes a CSV string, removing outer double quotes, handling embedded quotes and returning the result as a dynamic array where each element of the original string is represented by a separate field.
Example
S = 'ABC,"DEF","GHI,JKL","MN""O"' DISPLAY CSVDQ(S)
The above program fragment would display ABCFMDEFFMGHI,JKLFMMN"O
ABC was unquoted and remains unchanged. DEF was quoted. The quotes have been removed. GHI,JKL contains a comma that has been preserved after removal of the quotes. MN"O contains an embedded quote that has been preserved. |