Hi

Is there a function that trims strings

Ex.

myString = " THIS IS A TEST "

After the word TEST there often is blacnk spaces.
Is there a function that I can trim the string above

to be myString = "THIS IS A TEST". In other words
remove the spaces before and THIS IS A TEST

the code must be capable doing this to a selected area of a textbox


hopy you can help

Best regards,

Chris Davidsen