|
-
Mar 22nd, 2013, 01:01 AM
#8
Re: Extracting Part of a String
 Originally Posted by N00BPR0GRAMER
Code:
Dim Splitup as string
Dim Secondfromlast as string
For index = 0 To PartsArray.GetUpperBound(0) 'so your Array Containing all Data is called PartsArray
Dim splitUp = qtyfind.Split(" ") 'so you should use "PartsArray(index)" in here instead of "qtyfind"
Dim secondFromLast = splitUp(splitUp.Length - 2)
Quantity.Items.Add(secondFromLast)
Next
..added two comments to your code!
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
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
|