checking if string has been entered

how is a way to check if a string has been entered in a input box..... like an isnumeric() function but only for strings.... thanx

Comments

  • : how is a way to check if a string has been entered in a input box..... like an isnumeric() function but only for strings.... thanx
    :
    you have a form
    get the text box value into a string
    call string.TrimEnd
    if string.length > 0 then
    you have an inputted string
    else
    no inputted string
    end if

    I would strongly suggest you limit the length of the text box
    and add some code to determine if the inputted string is valid
    e.g. STATE: MARYLAND vs. MD vs. MARY

  • : how is a way to check if a string has been entered in a input box..... like an isnumeric() function but only for strings.... thanx
    :

    If textbox.Text = string.empty then
    'Nothing Entered
    else
    'Something entered.
    endif

  • : : how is a way to check if a string has been entered in a input box..... like an isnumeric() function but only for strings.... thanx
    : :
    :
    : If textbox.Text = string.empty then
    : 'Nothing Entered
    : else
    : 'Something entered.
    : endif
    :
    :


    Hi

    If IsNumeric(textbox.text)=False then


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories