Results 1 to 3 of 3

Thread: First characture in a text box

  1. #1

    Thread Starter
    Fanatic Member spud's Avatar
    Join Date
    Aug 2000
    Location
    Munster (Germany)
    Posts
    542
    Hi All

    Just a ponder, how would you get the first letter in a textbox to appear in a Label caption. ex My name is Spud and the letter "S" appears in a label caption?


  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    I'm not quite sure what you mean.

    If text1.Text="My name is Spud" then the letter M is the first Character.


    The code to get the first character of a textbox would be

    Code:
    Label1.Caption = Left$(Text1.Text,1)
    I'm not quite sure what you want to do to get the letter S.

  3. #3

    Thread Starter
    Fanatic Member spud's Avatar
    Join Date
    Aug 2000
    Location
    Munster (Germany)
    Posts
    542

    Talking

    Sam thats exactly what I was looking for!

    Thanks Spud

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