HI,

C#
string str = "1221,1222";
string[] strValues = str.Split(',');

VB
Dim str As String = "1221,1222"
Dim strValues As String() = str.Split(","C)

Thanks & Regards
Amir

On Apr 16, 10:57 am, Joe Enos <[email protected]> wrote:
> You can use the Split method to convert it to a string array - from
> there, you can convert the values into an int array using the
> ConvertAll method.
>
> On Apr 15, 10:49 pm, vikas arora <[email protected]> wrote:
>
>
>
> > hi all,
>
> > i have a value 1221,1222 in a variable str
>
> > how can i convert these value in an integer array in vb.net

Reply via email to