Closed Thread
Results 1 to 2 of 2

Thread: [Help] String manipulation.

  1. #1
    afiser is offline Newbie
    Join Date
    May 2007
    Posts
    4
    Rep Power
    0

    [Help] String manipulation.

    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

    Code:
    12345678
    12345678
    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.

    thanks.
    Last edited by afiser; 05-24-2007 at 07:57 PM.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    CygnetGames's Avatar
    CygnetGames is offline Programmer
    Join Date
    May 2007
    Location
    York, England
    Posts
    119
    Rep Power
    0
    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".

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Simple String manipulation!
    By madskillsmonk in forum Python
    Replies: 5
    Last Post: 03-09-2011, 06:07 PM
  2. C++ String Manipulation
    By skastu01 in forum C and C++
    Replies: 2
    Last Post: 08-23-2010, 09:42 AM
  3. C# trimming string or string manipulation
    By Siten0308 in forum C# Programming
    Replies: 3
    Last Post: 01-05-2010, 09:37 PM
  4. String Manipulation
    By chili5 in forum PHP Tutorials
    Replies: 10
    Last Post: 03-24-2009, 03:11 PM
  5. Replies: 5
    Last Post: 04-04-2008, 06:04 AM

Tags for this Thread

Bookmarks

Posting Permissions

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