Results 1 to 2 of 2

Thread: Text editing question Trim$

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 1999
    Location
    Skudeneshavn, Norway
    Posts
    38
    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
    Christian Davidsen

    If you go to sleep with an itchy
    ass, you wake up with smelly fingers.

  2. #2
    Guest
    Code:
    MyString = Trim$(MyString)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width