hi
Dim str As String = "1221,1222"
Dim strValues As String() = str.Split(","C)
after ssplit the values u will get the array of string values
declare a int array of length strValues.length
dim m as integer;
//declare intstr as int array
for(i as intger =0;i<strValues .length;i++)
m=inr.parse(intstr[i])
intstr=m
next

i think this should work
On Thu, Apr 16, 2009 at 5:18 PM, amir <[email protected]> wrote:

>
> 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
>



-- 
Mohammed Sabir Piya
Thopughtfocus
Mysore

Reply via email to