String manipulation/cleanup

Multimedia Builder (Legacy Forum)
Post Reply
Nigg
Posts: 57
Joined: Thu Apr 14, 2011 2:10 pm

String manipulation/cleanup

Post by Nigg »

Hey guys,

a long time since the last post here. I interrupt the pause!

Does anyone know a simple, efficient way to "clean up" a text string, like removing white-spaces or special characters, for example?

dgilmour
Posts: 535
Joined: Fri Oct 22, 2010 11:29 am
Location: Moskva, Rusko
Contact:

Re: String manipulation/cleanup

Post by dgilmour »

StrChange can do the job:

Code: Select all

t$ = 'Lorem ipsum dolor sit amet'
f$ = ' '
r$ = ''
t$ = StrChange(t$, f$, r$)

Nigg
Posts: 57
Joined: Thu Apr 14, 2011 2:10 pm

Re: String manipulation/cleanup

Post by Nigg »

Thanks, but that only works for one character, not for line breaks or more characters or a combination of that

// Edit: I was stupid, I now simply use multiple runs, works, thank you

dgilmour
Posts: 535
Joined: Fri Oct 22, 2010 11:29 am
Location: Moskva, Rusko
Contact:

Re: String manipulation/cleanup

Post by dgilmour »

Nigg wrote:Thanks, but that only works for one character, not for line breaks or more characters or a combination of that
I almost believed you that it does work this way.

Post Reply