Hi all,
I have a comma delimited file that I need to read into an array. I am running into problems when one or some of the fields have an embedded comma.
For Example:
Record 1
WHCO,AM,"68,112-A",117,HOUSTON,32775,AK056008,,001,07
Record 2
WLGA,FM,19265-1,063,"COLUMBUS,GA",20000,AF012061,,001,08
In this case I want the third field of the array to be "68,112-A" for record 1, but when I use the split function I get 68 as the third field and 112-A as the fourth field.
Same problem for record 2, I want "CULUMBUS, GA" to be as the fifth field not just "COLUMBUS".
Quotes are placed on the field that contain an actual comma as part of the field.
here is my code:
varLongString = Split(LineIn(rcount), ",")
How do I solve this problem? Any help is apreciated.
Thanks
I have a comma delimited file that I need to read into an array. I am running into problems when one or some of the fields have an embedded comma.
For Example:
Record 1
WHCO,AM,"68,112-A",117,HOUSTON,32775,AK056008,,001,07
Record 2
WLGA,FM,19265-1,063,"COLUMBUS,GA",20000,AF012061,,001,08
In this case I want the third field of the array to be "68,112-A" for record 1, but when I use the split function I get 68 as the third field and 112-A as the fourth field.
Same problem for record 2, I want "CULUMBUS, GA" to be as the fifth field not just "COLUMBUS".
Quotes are placed on the field that contain an actual comma as part of the field.
here is my code:
varLongString = Split(LineIn(rcount), ",")
How do I solve this problem? Any help is apreciated.
Thanks