Big problem...
i need to use a csv with comma delimited.
but....
in one or more value, have a comma in string!!!!
similar:
...,price_title,...
...,145,55,....
comma in csv
-
- Administrator
- Posts: 78378
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: comma in csv
If you want comma as delimiter, you should either enclose such values in quotes: "145,55", or use a point as decimal separator: 145.55.
Alternatively, use semi-colon instead of comma to separate the values: ...;145,55;...
Alternatively, use semi-colon instead of comma to separate the values: ...;145,55;...
Best wishes,
Hans
Hans
-
- BronzeLounger
- Posts: 1499
- Joined: 28 Feb 2015, 13:11
- Location: Hof, Bayern, Germany
Re: comma in csv
I get a lot of problems with , ; . in text files. If at all possible I would use some character as the separator that is unlikely to ever be in any of your data.
The pipe, | , is often used. It looks nice and pretty as a separator as well because it looks like a dividing wall
The pipe, | , is often used. It looks nice and pretty as a separator as well because it looks like a dividing wall
I am having difficulty logging in with this account just now.
You can find me at DocAElstein also
You can find me at DocAElstein also
-
- PlatinumLounger
- Posts: 4339
- Joined: 26 Apr 2010, 17:36
Re: comma in csv
no.
required only comma delimited.
if the value is incapsulated in Myvar (as string), how to "145,55"
peraphs:
Myvar=""145,55"" (with double quote, or not?)
-
- Administrator
- Posts: 78378
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
-
- PlatinumLounger
- Posts: 4339
- Joined: 26 Apr 2010, 17:36
Re: comma in csv
reolved with chr! tks
but similar problem with:
dim COLB AS STRING
COLB = "a:1:{i:0;s:8:"customer";}"
when i import, Excel consider two value!!!
a:1:{i:0 and s:8:"customer";}
i have used also a chr(34) for Chr(34) & COLB & Chr(34)
but why i use a comma delimited and not ;
-
- Administrator
- Posts: 78378
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: comma in csv
It might be because your system settings use ; as list separator.
Best wishes,
Hans
Hans