Hi,
I have a string variable with the value “100,150,900”
I want to get the output as below:
100
150
900
PLease let me know how to achieve this
Hi,
I have a string variable with the value “100,150,900”
I want to get the output as below:
100
150
900
PLease let me know how to achieve this
“100,150,900”.Split(","c) will return a string array
When e.g line breaks are needed for an out we can do
String.Join(Environment.NewLine, “100,150,900”.Split(","c))
Use Split method of string
Use Split( “100,150,900”,“,”) stored it in array of string
inputString.Split(“,”c)
Hi @aishwarya1,
you can use this. Get its variable as array.
arrayList = yourString.Split("."c)
Regards,
MY
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.