VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,768 questions
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