jump to navigation

Remove the space in a string… August 30, 2008

Posted by pierrekoerber in Lotus domino, Tech.
Tags: , , , ,
trackback

Last week I was searching a way to suppress spaces in a string. I thought about the trim function… but it doesn’t do the magic.
After several minutes of thinking with the web I found a simple way…
The conclusion is : we become stupid, we can’t think first, we’re going on the web…

Dim x as string
x=”1  2   2 3  4 5″
‘*** Packed x without spaces !
x = replace(x, ” “, “”)

Comments»

No comments yet — be the first.