Thanks,
I now have the String.Split working and trying to get the double quotes out
The data (splitting on comma) now produces an array of:
[0] "Name"
[1] ","
[2] "Info1"
[3] ","
[4] "Info2"
I am trying to use s[0].Replace(""","")
but it doesn't like the first string of the three double-quote I am trying
to remove
and it doesn't like the second string of double quotes ie: empty string
I am trying to remove the doublequotes in front and behind the string data
--or-- Am I just being DUMB looking at the data in the debugger and the
quotes only indicate string data and are not really there --no-- I am
putting each string in the array into a table cell (just to 'see' it) and the
quotes are there...
How can I specify the " character as the character to be replaced and How
can I specify an empty string ie: nothing to replace the " -or- I could
replace the " with a space and then use Trim to get rid of the leading and
trailing space...
Thanks again,
Paul
> Paul,
> Here's a sample in C# - make sure that your data doesn't have the
[quoted text clipped - 9 lines]
>
> > Use the string.split method
pSm - 18 Jun 2005 06:39 GMT
Paul, if the source data doesn't have quotes, the string array would also not
contain quotes. So, no need of replacing anything.
> Thanks,
> I now have the String.Split working and trying to get the double quotes out
[quoted text clipped - 33 lines]
> >
> > > Use the string.split method
Cor Ligthert - 18 Jun 2005 06:46 GMT
Paul,
There are more split methods in the System. namespace there is as well the
Regex Split and in the VisualBasic namespace as well a method Split.
You can always have a look if these fit you better.
Cor
PaulThomas - 18 Jun 2005 14:36 GMT
The Regex.Split is working great - it's the double quotes I need to get
rid of because the data is enclosed in '' double quotes
Thanks again,
Paul
> Paul,
>
[quoted text clipped - 4 lines]
>
> Cor