Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Illegal redefinition
Message
 
 
To
03/09/2012 14:46:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01552250
Message ID:
01552251
Views:
69
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform