Replace function doesn't work properly

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi All,

I use the Replace function in a vb project but found out that it ain't
working properly.
I try to remove a space from a string using:

sStr = Replace(sStr, " ", "",1, -1)

I tried this, and with Chr(32) and also vbBinaryCompare.
The space stays in.

Any ideas what causes this?

Regards
Marco
.