dbpexporttocsv - Forum

Forum Navigation
You need to log in to create posts and topics.

dbpexporttocsv

Hello
in the dbpExportToCSV command
When choose Delimiter = ;

and aForceQuotes = yes

The column information is not between " "

@s7shanbe

Maybe I didn't understand the question. I usually use a vertical line as a separator. If you want to try a space, you could try using the special character [#32] instead of the obvious space character. But I haven't tried using a space as a separator.

@vadim

I would use ; character As a separator.

@s7shanbe

As far as I know, any separator should work. Do you have a semicolon as a separator that doesn't work?

@vadim

Yes, exactly

semicolon as a separator that doesn't work.

@vadim

test this Action:

dbpExportToCSV "db" "mems" "[pubDir]export.csv" "Range=All;Delimiter=;;IncludeFieldNames=No;ForceQuotes=Yes"

@s7shanbe

Yes, it really is! I didn't know.
But you can easily get around that by making up any delimiter for a while (in my example &&&) and replacing everything automatically:

dbpExportToCSV "LAUNCH" "People" "[pubDir]export.csv" "Range=All;Delimiter=&&&;IncludeFieldNames=No;ForceQuotes=No"
FileToVar "[pubDir]export.csv" "[old]"
StrReplace "[old]" "&&&" ";" "[new]" ""
FileWrite "[PubDir]export.csv" "All" "[new]"

@s7shanbe
@vadim

The most likely reason Delimiter=; does NOT work is because the semicolon is also the delimiter for the various options in the third parameter ... try using the ascii value for semicolon i.e. [#59] ... like this ...

dbpExportToCSV "db" "mems" "[pubDir]export.csv" "Range=All;Delimiter=[#59];IncludeFieldNames=No;ForceQuotes=Yes"

 

HPW has reacted to this post.
HPW