I dont understand.. I dont even really understand how to answer your question; to me it is quite obvious why a list of numbers is very different to a string. A MessageBox requires a string, not an array of numbers. Perhaps if you said what you wanted your messagebox to look like then I would be able to understand the request?
If youre using this just to check that it has been done properly, youre better off using the debugger. Just type ?intZ in the Immediate window when the program is on a breakpoint
I apologize for the confusion I have caused, The output in fact needs to be in a text box, I was able to get part of it working with the following code:
VB.NET:
Dim intX() As Integer = {4, 9, 12, 15, 22, 33, 44, 66, 72, 84, 87, 92, 96, 98, 99}
Dim intY() As Integer = {6, 8, 12, 16, 24, 31, 68, 71, 73, 74, 81, 93, 94}
Dim intZ(27) As Integer
Private Sub btnMerge_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMerge.Click
Dim I As Integer
For I = 0 To 14
intZ(I) = intX(I)
Next
For I = 0 To 12
intZ(I + 12) = intY(I)
txtBox1.Text = txtBox1.Text & intZ(I) & intZ(I + 12)
Next
End Sub
As you can see there is a small problem, I would appreciate another set of eyes on it to help me see the mistake, ALSO!!!!! I know that it would be easier to use copy.array and sort it but, I cannot use any Array Methods with this. I will also upload the .zip with the project in it if you want to see how it acts.
Any Help Would Be Appreciated, Again Sorry for the confusion.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.