Results 1 to 4 of 4

Thread: read character from textbox

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2011
    Posts
    9

    read character from textbox

    how to read first character from textbox

  2. #2
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618

    Re: read character from textbox

    MyTextBox.Text.Substring(0,1)

    May want to validate there is data in there first though.

    if MyTextBox.Text.Length >= 1 then...
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2011
    Posts
    9

    Re: read character from textbox

    if i have text "C001" in textbox1. then i only want read character "C" from textbox. sorry because i'm newbie.

  4. #4
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618

    Re: read character from textbox

    Quote Originally Posted by ghacok View Post
    if i have text "C001" in textbox1. then i only want read character "C" from textbox. sorry because i'm newbie.
    I just showed you how...
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

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