hey,

does anyone has any idea why trim (StrVar) doesn't remove the spaces in the begining and in the end of the string.

the code is simple:

StrVar = right (Item.Body,50)

StrVar = trim (StrVar)

msgbox StrVar "before" & StrVar & "after"


for the body ending in " 1234 " I still get the same string with all the spaces

I'm sure this is really stupid, but I still can't see how...

thanks,