Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
Option Explicit
Dim antwort As String
Dim right As String
Dim wrong As String
Dim versuch As Integer
Private Sub Form_Load()
versuch = 0
End Sub
Private Sub try_Click()
right = "jopp"
antwort = Text1
If antwort = right Then
MsgBox "HEEELAS"
Else
versuch = versuch + 1
End If
If versuch = 4 Then
Form2.Show
End If
End Sub
Option Explicit
Dim Versuche As Byte
Private Sub Command1_Click()
If Text1.Text = "pass" Then
MsgBox "Richtig"
Else
MsgBox "Falsch"
Versuche = Versuche + 1
If Versuche = 4 Then End
End If
End Sub
Private Sub Command1_Click()
If Text1.Text = "pass" Then
MsgBox "Richtig"
Else:
MsgBox "Falsch"
Versuche = Versuche + 1
End If
If Versuche = 4 Then End
End Sub
Hm. Am Doppelpunkt liegts sicher nicht.Original von HOFER.Aldi
Wieso steht bei mir immer so ein scheiß???
hab das richtig reincopiert gehen müsste es ja auch.
Compile error:
Block if without end if
Option Explicit
Dim Versuche As Byte
Private Sub Command1_Click()
If Text1.Text = "pass" Then
MsgBox "Richtig"
Else
MsgBox "Falsch"
Versuche = Versuche + 1
If Versuche = 4 Then
End
End If
End If
End Sub
Original von .tails
Cannabis Code ist zwar auch "richtig",
aber hab nochmal kurz ne bessere Version geschrieben: