TechGuyChris
New member
- Joined
- May 21, 2013
- Messages
- 2
- Programming Experience
- Beginner
Hi, i'm a beginner programmer. I just learned about arrays and I have a question related to something i'm trying to do because the book I have does not cover how to do this.
What I am attempting to do is build an application just for fun that will store what you type into a textbox into an array element.
The problem is that the book only covered examples on how to store values into an element by intilializing them explicitily in the code. I have included two sample examples of what the book has done. (I just renamed the string values)
Example1: Dim CustomerName() as String = {"Chris", "Beyonce", "JustinBieber", "AvrilLavigne"}
Example2: Dim CustomerName(4) as String
CustomerName(0)="Beyonce"
CustomerName(1)="Chris"
I want to store a name that you enter into a textbox into the array. How do do you do this? BTW i dont intend on publishing this app. Its just for play to test out VB stuff.
TechGuyChris
What I am attempting to do is build an application just for fun that will store what you type into a textbox into an array element.
The problem is that the book only covered examples on how to store values into an element by intilializing them explicitily in the code. I have included two sample examples of what the book has done. (I just renamed the string values)
Example1: Dim CustomerName() as String = {"Chris", "Beyonce", "JustinBieber", "AvrilLavigne"}
Example2: Dim CustomerName(4) as String
CustomerName(0)="Beyonce"
CustomerName(1)="Chris"
I want to store a name that you enter into a textbox into the array. How do do you do this? BTW i dont intend on publishing this app. Its just for play to test out VB stuff.
TechGuyChris