0

i'm using this code

If txtCashTendered.Text = "" Then
            MsgBox("Input Amount First!")
            txtCashTendered.Focus()
            Exit Sub
        End If
        If ctbTotal.Text < txtCashTendered.Text Then
            Try
                Dim x
                x = MsgBox("Finalize Transaction?", MsgBoxStyle.YesNo)
                If x = vbYes Then
                    txtCashChange.Text = Format(txtCashTendered.Text - ctbTotal.Text, ".00")
                    FinalizeTransaction()
                End If
            Catch ex As Exception
                MsgBox("Create a transaction first!")
                Exit Sub
            End Try
        Else

            MsgBox("The amount you entered is invalid!")
            txtCashTendered.Focus()
            Exit Sub
        End If

why is it returning false on the line

If ctbTotal.Text < txtCashTendered.Text

when the value of ctbTotal.text is 60.00 and txtCashTendered.text is 100?

2
Contributors
2
Replies
4
Views
5 Years
Discussion Span
Last Post by aldeene
0

okay.. i tried another way around and it works.. thanks btw..

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.