Page 1 of 1

Need function to remove a SPACE from a NULL terminated str

Posted: Fri Jan 13, 2017 11:23 am
by unixkd
Hi all

Need function to remove a SPACE from a NULL terminated string returned by an API function call

Thanks

Joe

Re: Need function to remove a SPACE from a NULL terminated

Posted: Fri Jan 13, 2017 12:06 pm
by rdonnay
I think what you are wanting is to remove the null terminator and then trim.

Code: Select all

cString := Trim(Strtran(cString,Chr(0),''))