QB64.org Forum
Active Forums => Programs => Topic started by: SpriggsySpriggs on June 02, 2020, 10:03:13 am
-
I'm sure you all already have all sorts of ways to manipulate strings but I figured I'd add this little function if anyone wants some feeling of the .NET string methods. I borrowed the Replace method from Steve McNeil in another post and then did a light edit to make the Remove function.
PRINT String.Insert
("Helloworld", ", you ridiculously stupid ", 6)
toChange
= MID$(toChange
, 1, position
- 1) + insert
+ MID$(toChange
, position
, LEN(toChange
) - position
+ 1)
r$ = a
c = ""
r$ = a