StringTokenzier

R

radhakrishnan

Hello,

I have a string 1,2,3,4 and i want to spilit the string into 1
2 3 4
similar thing can be done java using stringtoken

is there any similar way in asp.net

thanks

radha
 
F

Felbrigg

string a = "1,2,3,4";
string e = ","
string b[];

char[] c = e.ToCharArray();

b = a.split(c)

then b[0] = "1" and b[1] = "2" etc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,093
Messages
2,570,607
Members
47,227
Latest member
bluerose1

Latest Threads

Top