-
February 17th, 2012, 07:07 PM
#1
Confusing String Question
Ok I'm almost finished with my project thanks to everyones support. Just 2 more questions that should help me out.
I have a string 123456789012
Each one of those numbers to into there own textbox on the forum for later use
then find a way to get my 123 123 123 123 123 123 123 123 123 123 123 123
so that each 3 Digit number will also be loaded into its own textbox
Thanks agian for all your support
-
February 17th, 2012, 07:58 PM
#2
Re: Confusing String Question
In the first one do you mean each digit?
If so you would use the mid() function in a loop
The second one you would use the Split() function
Always use [code][/code] tags when posting code.
-
February 17th, 2012, 09:25 PM
#3
Re: Confusing String Question
sorry Im a newbie, and Im not asking for a spoon but can you give be a better explination
-
February 17th, 2012, 10:01 PM
#4
Re: Confusing String Question
Mid() allows you to extract 1 or more characters from a string which will solve the first question.
Split() allows you to break a string into an array based on a seperator character in this case a space which will solve the second question.
If you do not understand how to use these then I would suggest you look online for some samples. Both are pretty simple and you will come away with a much better understanding if you do it yourself.
Always use [code][/code] tags when posting code.
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
|