Search:

Type: Posts; User: LaVolpe

Search: Search took 0.49 seconds.

  1. Re: How to block entry of non-numeric string into a textbox

    Well, can't really use CStr(CLng(someText)) because that could be too limited, as the pasted text may exceed min/max long values. If only whole numbers are needed, the most obvious solution may be...
  2. Re: How to block entry of non-numeric string into a textbox

    I might prefer this format since whole numbers are only wanted:

    If IsNumeric(pastedText) Then MsgBox CStr(Format(pastedText,"#"))
    Can this cause a potential problem on non-US regional settings?
  3. Re: How to block entry of non-numeric string into a textbox

    Just a tip about IsNumeric(). Function can return true for strings like "&hFE", "&o34", and "2E+0". If that is ok but only 'integer' should be displayed, convert the pasted string to digits before...
Results 1 to 3 of 4



Click Here to Expand Forum to Full Width