Search results for query: *

  1. G

    Read from txt into 2D array

    wait wait it works now. Got someone else to look at my loops and they spotted where to add the reset to 0 line. PHEW!
  2. G

    Read from txt into 2D array

    Hello I need this txt file: 4 7 6 9 3 1 8 5 2 9 1 5 8 2 6 7 4 3 8 2 3 4 7 5 9 6 1 2 9 1 7 5 3 4 8 6 5 8 7 1 6 4 3 2 9 6 3 4 2 9 8 5 1 7 7 4 8 6 1 9 2 3 5 1 5 9 3 8 2 6 7 4 3 6 2 5 4 7 1 9 8 ...to be read into a 2d array. All my attempts using read, readline, readtoend have all failed somehow...
  3. G

    Added control not declared?

    Thanks! As soon as you exposed me to the local variable thing I went and found the private declaration syntax and whattaya know all the examples throughout the book did not use it so I'd remained oblivious. You guys should put together a book from all the forum posts. Cheers!
  4. G

    Added control not declared?

    OK here the code for creating the textbox array: Const rows As Integer = 3 Const columns As Integer = 3 Const xGap As Integer = 58 Const yGap As Integer = 48 Dim i As Integer Dim j As Integer 'declare array of textboxes Dim gridTextBox(rows, columns) As TextBox 'create each element in...
  5. G

    Added control not declared?

    Hello. I've come from a c++ background and learning VB.NET has been confusing for some reason cos of this. Anywho, I have a 2d array of textboxes (gridtextbox(i,j)) that are generated in the load procedure and work perfectly. However when I try to code the click event that calculates the sum...
Back
Top