Re: Whitespaces

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi Brian,

>What's the easiest way to get rid of whitespaces at the end of a string of
>text?
try this...

--------------
sequence text
for i = length(text) to 1 by -1 do
   if text[i] != ' ' then
        text = text[1 .. i]
      exit
   end if

   if i = 1 then
        text = ""
      exit
   end if
end for
-------------

-----
cheers,
Derek Parnell

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu