Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    FLC
    FLC is offline
    New to the CF scene
    Join Date
    Nov 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy help needed to separate this single string to 3

    108844390 A 499GH33


    I have a single string like above and I would like to separate it to 3 strings,

    I want it to be able to get something like this

    108844390
    A
    499GH33

    How do you do this using indexof() functions?

  • #2
    Regular Coder
    Join Date
    Dec 2004
    Location
    Manchester, UK
    Posts
    134
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    parts = string.split(' ') //split at a space character
    // so parts[0] = 108844390 and parts[1] = A and parts[2] = 499GH33


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •