1 Replies - 19816 Views - Last Post: 23 October 2009 - 03:31 PM Rate Topic: -----

#1 agentjk  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 37
  • Joined: 11-February 07

Store user input in array?

Post icon  Posted 23 October 2009 - 03:19 PM

Been searching for hours and I can't find an exapmle of how to pass user entered data (from a textbox) to an array? All the examples I have found show how to populate an array with predefined values. Heres what I've got, its messing and not close to what I want.
 Private Sub AddButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddButton.Click
		Dim AddNumInteger As Integer
		Dim NumbersStorage(99) As Integer
		AddNumInteger = Integer.Parse(NumAddTextBox.Text)

		If AddNumInteger >= 0 Then

		End If
	End Sub

When the users clicks the add button the value they entered in the NumAdd textbox is sent to an element?

Is This A Good Question/Topic? 0
  • +

Replies To: Store user input in array?

#2 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon

Reputation: 2298
  • View blog
  • Posts: 9,535
  • Joined: 29-May 08

Re: Store user input in array?

Posted 23 October 2009 - 03:31 PM

Tutorial: Arrays Made Simple

Plus you are aware the once the click routine finishes the array will no longer exist.
On which I suggest you look at Tutorial: Scope of Variables
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1