|
-
Oct 4th, 2010, 07:10 AM
#1
Thread Starter
Lively Member
[RESOLVED] String manipulation
(Visual Basic 2008 Express edition)
I have string1 that may contain from 6 to 180 integers and comma characters, something like this:
11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,
The number of integers is always divisible by the number 3.
I need to make a new string2, containing every third integer from string1 but starting from the pre-specified integer (in TextBox1), at a special procedure, as follows:
If TextBox1.Text = 1 then string2 (for the example above) should look like this:
String1 = 11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,
String2= 11,14,17,20,23
But, If the TextBox1.Text = 8 then string2 (for the example above) should look like this:
String1=11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,
String2= 18,21,24,12,15,
Whether this can be done?
I hope to get a help.
Thanks in advance.
Onenew
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
|