Finance

Charts

Statistics

Macros

Search

Module-Level Variables in Excel VBA

The following module-level variables are declared in Module1:

Option Explicit
Dim FirstActive As Boolean
Dim FirstShape As Shape
Dim GameActive As Boolean

Explanation:

  • The Boolean variable ErstesAktiv stores whether the first image (puzzle piece) has already been selected during the swapping process.
  • The variable Erstes is a reference to the first selected puzzle piece (Shape) involved in the swapping operation.
  • The Boolean variable SpielAktiv indicates whether the game is currently running and not yet finished. This is important to manage cases when the user presses the START button again during an ongoing game.

 

0 0 votes
Évaluation de l'article
S’abonner
Notification pour
guest
0 Commentaires
Le plus ancien
Le plus récent Le plus populaire
Online comments
Show all comments
Facebook
Twitter
LinkedIn
WhatsApp
Email
Print
0
We’d love to hear your thoughts — please leave a commentx