Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Illegal redefinition
Message
 
 
À
03/09/2012 14:46:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01552250
Message ID:
01552251
Vues:
68
>I am getting an Illegal redefinition error for a public variable named TheCount
>
>Below are the three lines of code where the variable is used.
>
>Public TheCount
>TheCount = 0
>TheCount = TheCount + 1
>
>I renamed it TheKount and get the same result.
>
>The only other use of it is in the data property of textbox that displays the count of items found.
>
>Any idea what the cause might be?

Don't use public variable. Switch to a form's property if this variable is only needed for the form or application property (if you don't use application object - _screen property) to use in the application.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform