Need function to remove a SPACE from a NULL terminated str

Xbase++ 2.0 Build 554 or later
Post Reply
Message
Author
User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

Need function to remove a SPACE from a NULL terminated str

#1 Post by unixkd »

Hi all

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

Thanks

Joe

User avatar
rdonnay
Site Admin
Posts: 4728
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

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

#2 Post 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),''))
The eXpress train is coming - and it has more cars.

Post Reply