Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

[Help] String manipulation.


  • Please log in to reply
1 reply to this topic

#1 afiser


    CC Lurker

  • Just Joined
  • Pip
  • 4 posts

Posted 24 May 2007 - 06:53 PM

How would i go about making a string that says "12345678" make it output to "78563412". so what i want it to do is make it sort of "mirror" the string if you understand what i am saying. also i would like to know how to take something like "1234567812345678" and make it output to say


so basically make it into two separate lines. it would be more useful if you could take every 8th digit and cut it into another string if possible.

i understand i am asking for a lot but any help would be very useful.

  • 0

#2 CygnetGames


    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 122 posts

Posted 31 May 2007 - 12:24 PM

You might want to look up the "Mid" function for chopping up strings - Mid(inputString, start, length) gives you the next "length" characters in "inputString", starting from character number "start".
  • 0

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download