Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Redefine THIS. error
Message
From
19/05/2021 14:36:03
 
 
To
19/05/2021 14:27:28
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01680602
Message ID:
01680604
Views:
43
>>Hi,
>>
>>Do you know what would cause the error?
>>
>>cannot redefine THIS.
>>
>>
>>TIA
>
>THIS is a keyword, refers to an object like a window or a control. Just enter the following in the command window to see the error occur:
>
>
>this = 5
>
>
>Anything like that in your code, perhaps where you wanted to reference a property of the object THIS refers to?

First, thank you for your help.
I checked the method (INIT) where this error occurs. I have many places where the code references various properties with
thisform.someproperty 
I have an idea of what caused the problem. I will try to duplicate.
Thank you, again!
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform