why error like "Input string was not in a correct format."

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rick Chua
    New Member
    • Apr 2011
    • 1

    why error like "Input string was not in a correct format."

    Private Sub Txtqtyty001_Los tFocus(ByVal sender As Object, ByVal e As System.EventArg s) Handles Txtqtyty001.Los tFocus

    Dim qty As Integer
    Dim price As Double
    Dim total As Double
    If Txtqtyty001.Tex t = " " Then
    Else


    qty = Integer.Parse(T xtqtyty001.Text )
    qty = 0

    End If

    price = CDbl(Txtupty001 .Text)
    total = price * qty

    Txtstty001.Text = FormatCurrency( total)
  • VijaySofist
    New Member
    • Jun 2007
    • 107

    #2
    Hi,
    Please Specify Clearly in which Line you are getting this Error and What is the Process you are looking for.

    As far as it looks, you seems to be passing some non numeric characters in the
    Txtupty001 TextBox


    Regards
    Vijay.R

    Comment

    Working...