How to split a string on the basis of semicolon

Hello All,

I have a string variable like this - variable1-abcd;gdgd;huhu;zxcv
I need to split this string to get the vale like 1- abcd , 2-gdgd, 3-huhu,4-zxcv

Please help

@Karan28

Try this:

   yourStr.Split(";"c)

It will give you array of strings and then use index to get one by one value.

    yourStr.Split(";"c)(0)
    yourStr.Split(";"c)(1)
    Etc...
1 Like

thankyou so much , it worked

1 Like

SplitString.zip (11.1 KB)

Please find the attached.

Regards,
Anil

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.