flotul wrote: ↑Wed Sep 14, 2022 4:06 pm
Still, replstr$() doesn't accept to replace a character by "nothing".
It seems to work for me. I tried this program:
Code: Select all
print chr$(34); replstr$("Hello world!", "o", ""); chr$(34)
'include lb45func.bas
And it produced the output "Hell wrld!" which is correct, isn't it?
What is the best way to remove any space in a full string then?
Again it seems to work for me:
Code: Select all
print chr$(34); replstr$("Hello world!", " ", ""); chr$(34)
'include lb45func.bas
which produced "Helloworld!". I can't understand why it is seemingly working for me but not for you. What happens if you try the exact examples listed above?