
squirreltown
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2013
03:04 PM
StrReplace
I need to remove a substring from the middle of a string.
str = (123xyz567)
need to remove "xyz"
The strReplace function in StringUtils.brs doesn't actually replace just the string, it replaces it AND removes everything after it, not what i need.
Thanks
str = (123xyz567)
need to remove "xyz"
The strReplace function in StringUtils.brs doesn't actually replace just the string, it replaces it AND removes everything after it, not what i need.
Thanks
Kinetics Screensavers
2 REPLIES 2

RokuMarkn
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2013
03:17 PM
Re: StrReplace
StrReplace seems to work for me
--Mark
BrightScript Debugger> print StrReplace("123xyz567", "xyz", "")
123567
--Mark

squirreltown
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2013
03:24 PM
Re: StrReplace
Thank you Mark, that works for me too. I was over-thinking and trying to print from inside that function. Again thinking too much, i knew it had to be simple.
Kinetics Screensavers