Confusing String Question
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Confusing String Question

  1. #1
    Join Date
    Feb 2012
    Posts
    9

    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

  2. #2
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    4,786

    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.

  3. #3
    Join Date
    Feb 2012
    Posts
    9

    Re: Confusing String Question

    sorry Im a newbie, and Im not asking for a spoon but can you give be a better explination

  4. #4
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    4,786

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center