ReplaceString

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
techjunkie
Addict
Addict
Posts: 1126
Joined: Wed Oct 15, 2003 12:40 am
Location: Sweden
Contact:

ReplaceString

Post by techjunkie »

This is maybe petty, but it bugs me. Can't sleep at night! :wink:

A small doc (IMHO) enhancement;

Change,

Code: Select all

String$ = ReplaceString(String$, StringToFind$, StringToReplace$ [, Mode [, StartPosition]])
to

Code: Select all

String$ = ReplaceString(String$, StringToFind$, StringToReplaceWith$ [, Mode [, StartPosition]])
or even better... :wink:

Code: Select all

ResultString$ = ReplaceString(OriginalString$, StringToFind$, StringToReplaceWith$ [, Mode [, StartPosition]])
Image
(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
techjunkie
Addict
Addict
Posts: 1126
Joined: Wed Oct 15, 2003 12:40 am
Location: Sweden
Contact:

Post by techjunkie »

Well, and why not an "EndPosition" parameter;

Code: Select all

ResultString$ = ReplaceString(OriginalString$, StringToFind$, StringToReplaceWith$ [, Mode [, StartPosition [, EndPosition]]])
Image
(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
Post Reply