splitting a string in parts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 55chris55
    New Member
    • Mar 2008
    • 3

    splitting a string in parts

    say i have a 10 digit number
    how would i be able to split the string in a certain number of desired parts, say 3

    example

    the number input is 0123456789

    i want to split this to be
    012
    345
    678
    9
  • jeffstl
    Recognized Expert Contributor
    • Feb 2008
    • 432

    #2
    Originally posted by 55chris55
    say i have a 10 digit number
    how would i be able to split the string in a certain number of desired parts, say 3

    example

    the number input is 0123456789

    i want to split this to be
    012
    345
    678
    9
    Using these string manipulation functions. Each will result with its description

    Len(string): returns the length of string, the number of characters it contains.


    Left(string, number): returns the number of characters specified by number from the left end of string.


    Right(string, number): returns the number of characters specified by number from the right end of string.


    Mid(string, position, number): returns the number of characters specified by number starting at character number position from the left end of string

    Comment

    • 55chris55
      New Member
      • Mar 2008
      • 3

      #3
      thank you so much, thats exactly what i needed

      Comment

      Working...