Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

VB programming array beginner

  1. Mar 13, 2007 #1
    Hi im a new-comer to VB.Net & im working with arrays at the moment.i want to write a procedure that accepts two 2-D arrays(max size being a 4*4 matrix).
    i dont know how i could get the procedure to read in these values from the sixteen different textboxes i have created....i started using a for/next loop to go through each row as shown below:

    Dim i, j, n, m As Integer
    Dim a As Double(,)
    a = New Double(i, j) {}
    For i = 0 To a.GetUpperBound(i)
    For j = 0 To a.GetUpperBound(j)
    a(i, j) = TextBox

    its here that im stuck i want it to go through each row of textboxes row by row and read in the values input by the user.would some sort of inner loop again work...or is there a much easier way to do this...any help is much appreciated :biggrin:
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?