Ltrim Function

Hi,
I am trying to remove space in listbox.cell,

  Dim oo as integer
  for oo = Listbox1.ListCount-1 downto 0
    Listbox1.cell(oo,3)=LTrim(Listbox1.cell(oo,3))
    Listbox1.cell(oo,3)=RTrim(Listbox1.cell(oo,3))
  next oo

if I run it on xojo IDE, its closed the debug.app., when it compiled/build its doesn’t show any errors.
i am using xojo 2014 r.4.3
is there any simple ways to do it so ?

thanks
regards,
arief

Why not just one call to Trim?

hi,

i need Ltrim and Rtrim actually.
I am sorting the code for grouping. the spaces sometimes make the code won’t work.

thanks
arief

Trim will remove spaces from both sides of your string. See:

https://documentation.xojo.com/api/text/trim.html

thanks,

its worked now

regards,
arief