samedi 4 mars 2017

How to check more value in if statement VB.NET

I don't know how to do this, but i'm trying to make a code that checks value more than 10 in VB.NET (Idk what it's called)

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        If currency = 10 Then
            Button2.Enabled = False
            Button3.Enabled = True
            clickpoints = clickpoints + 1
        ElseIf currency = +10 Then ' Check points more than 10
            Button2.Enabled = False
            Button3.Enabled = True
            clickpoints = clickpoints + 1
            currency = currency - 10
        Else
            MsgBox("Not enough points")
        End If
    End Sub

can someone help me?

Aucun commentaire:

Enregistrer un commentaire