2,892 questions
For example:
Dim ResultArray As Integer()() = MyStt.Split(","c).Select(Function(p) p.Split(" "c, 3).Take(2).Select(Function(s) CInt(s)).ToArray).ToArray
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
hi
My String is
dim MyStt ="2 10,3 5,4 7"
Need to 2D Array
Dim ResaultArray As Integer()() = New Integer(2)() {}
ResaultArray (0) = New Integer() {2, 10}
ResaultArray (1) = New Integer() {3, 5}
ResaultArray (2) = New Integer() {4, 7}
For example:
Dim ResultArray As Integer()() = MyStt.Split(","c).Select(Function(p) p.Split(" "c, 3).Take(2).Select(Function(s) CInt(s)).ToArray).ToArray