|
-
Aug 19th, 2012, 05:25 PM
#11
Thread Starter
Member
Re: VB 2010: Array displayed in listbox to textboxes for editing then back to array&.
 Originally Posted by AceInfinity
Okay... Here we go:
vbnet Code:
stockArray.First(Function(objArr) objArr(0) = ListBox1.SelectedItem.ToString)
Easy, but which array do you want to use here? Because remember stockArray is an array of an array, we need to reference at least one string array from INSIDE stockArray to compare with the values from the textbox
Is a 'jagged array' what you would call a multidimensional array. In this case two dimensonal?
For to referance somehing such as a name in a textbox I've been using Stockarray('meant to be increasing index')(0) to referance the first item from the split item on each lin e that corresponds to the index. So in all cases pretty much I reer to the first array as a varying integer and the second as the position in the second array of what I wish to change. I hope that's what you wanted to know.
I will also try out this code as soon as I can and post back with results. You explanation was very easy to understand. Thank You!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|