|
-
Aug 13th, 2007, 05:32 PM
#1
Thread Starter
Lively Member
[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
-
Aug 13th, 2007, 05:37 PM
#2
Re: String Manipulation
Use the Replace function. By default Replace changes all occurrances it finds.
strOld = "1934 + 44"
strNew = Replace(strOld,"+","-")
-
Aug 13th, 2007, 05:39 PM
#3
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|