Page 1 of 1

Replace space with underscore

Posted: Thu Jul 07, 2022 5:39 pm
by wayne_millard
Hi Everyone,

How can i replace spaces for underscores in strings?

Thanks,
Wayne M

Re: Replace space with underscore

Posted: Thu Jul 07, 2022 7:41 pm
by mnfisher
You need to step over the string in a loop and replace the ' ' characters with an '_' (I've assumed you want ' ' -> '_' - but this is easily changed if you want '_' -> ' ')

Such as:
replace.fcfx
(8.37 KiB) Downloaded 168 times
Martin

Re: Replace space with underscore

Posted: Thu Jul 07, 2022 8:00 pm
by wayne_millard
Hi Martin,

Thanks for the example.

Wayne M