+ Reply to Thread
Results 1 to 2 of 2

Left Align, selection margin

  1. #1
    Registered User
    Join Date
    09-10-2003
    Posts
    9

    Question Left Align, selection margin

    Good morning all.

    I have a userform with a textbox where users enter their names (First Last). I have set the alignment to TextAlignLeft and set the selection margin to True in the properties box. When the form is opened, the focus is in the name box, but the cursor is sitting after a space. I can backspace to the first position before typing, but is there a way to set this up permanently? Or is there some code I can use to get rid of this first space (I need the one between the first and last name to stay)?

    This form is used by multiple users, and there is code elsewhere in the file that takes the user's name as entered for use in e-mail, and if this leading space is there, this code won't work.

    Thanks in advance,
    Candee

  2. #2
    Forum Contributor
    Join Date
    12-04-2003
    Posts
    360
    use LTrim to remove leading spaces.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1