Results 1 to 3 of 3

Thread: [RESOLVED] String Manipulation

  1. #1

    Thread Starter
    Lively Member lil_bugga's Avatar
    Join Date
    Nov 2006
    Location
    Bishop's Stortford, Hertfordshire, UK
    Posts
    68

    Resolved [RESOLVED] String Manipulation

    Hi, just wondering how i can duplicate a string and manipulate it. What i'd like to be able to do is take a string like 1934 + 44, duplicate it and then change the plus sign to a minus.

    Whats the best way of performing a task like this, can it be used to change multiple + signs within the same string?

    Many Thanks
    Ben

    ps. Sorry if this has been posted before, Im not too sure what I would search for this

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: String Manipulation

    Use the Replace function. By default Replace changes all occurrances it finds.

    strOld = "1934 + 44"
    strNew = Replace(strOld,"+","-")

  3. #3

    Thread Starter
    Lively Member lil_bugga's Avatar
    Join Date
    Nov 2006
    Location
    Bishop's Stortford, Hertfordshire, UK
    Posts
    68

    Re: String Manipulation

    awesome thanks

    I knew someone would beable to help

    thanks for replying so quick

Posting Permissions

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



Click Here to Expand Forum to Full Width