Hi Everyone,
How can i replace spaces for underscores in strings?
Thanks,
Wayne M
Replace space with underscore
-
- Posts: 94
- http://meble-kuchenne.info.pl
- Joined: Fri Dec 04, 2020 6:12 pm
- Has thanked: 1 time
- Been thanked: 9 times
-
- Valued Contributor
- Posts: 1008
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 106 times
- Been thanked: 522 times
Re: Replace space with underscore
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: Martin
Such as: Martin
-
- Posts: 94
- Joined: Fri Dec 04, 2020 6:12 pm
- Has thanked: 1 time
- Been thanked: 9 times