Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
' Felder mit Zahlen belegen
For i = 1 To feldAnzahl
' Ausführung fortsetzen, wenn Feld keine Bombe ist
If (lblFeld(i).Caption <> "B") Then
' Zahlen verteilen
lblFeld(i).Caption = Val(i)
End If
' Bomben prüfen
If (lblFeld(i).Caption = "B") Then
'Für das Feld davor
cDummy = Val(0) 'Caption-Wert speichern
cDummy = cDummy + 1 'Caption-Wert um 1 erhöhen
lblFeld(i - 1).Caption = cDummy
'Für das Feld danach
cDummy = cDummy + 1 'Caption-Wert um 1 erhöhen
lblFeld(i + 1).Caption = cDummy
End If
Next i
If (lblFeld(Index).Caption = " ") Then
For i = 0 To feldAnzahl
' Alle Felder nach links hin öffnen
If (lblFeld(Index - i).Caption <> "B") Then
If (lblFeld(Index - i).Caption = " ") Then
cmdButton(Index - i).Visible = False
cmdButton(Index - i + 1).Visible = False
End If
End If
' Alle Felder nach rechts öffnen
If (lblFeld(Index + i).Caption = " ") Then
cmdButton(Index + i).Visible = False
cmdButton(Index + i + 1).Visible = False
End If
Next i
End If