Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control class problem
Message
From
21/11/2002 07:38:02
 
 
To
20/11/2002 21:45:04
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00724519
Message ID:
00725089
Views:
23
I wondered about that, because I thought the debugger doesn't like it when you try to get information based on 'this'. For instance, when I want information on a form, I can't use 'ThisForm', I either have to use the form's name, or '_Screen.ActiveForm'. I wondered what you might be getting when you check on 'this' and the debugger says it's an object.

Try it by name. For example, 'myformname.mycontainername.mycontrolname.width', and see what you get. I do know that if you create a method or property on your base class and make it 'protected', then only the base class can actually call on it directly.

If you made the function 'public', and you still can't call it, it might be because of something else being accessed that might not be public. What is 'mymethod()' doing. Is it accessing other methods or properties that are 'protected'?

Alan

>This.Name produces an "Expression could not be evaluated" value in the debugger. Same goes for every other property that I try (width, top, height, etc).
>
>This is driving me crazy!!! What gives?
>
>Mike
>
>
>>In the debugger, you check the value of 'This' and it reports an object. Can you check the value of 'This.Name'?
>>
>>Alan
Previous
Reply
Map
View

Click here to load this message in the networking platform