Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control class problem
Message
From
20/11/2002 15:43:47
 
 
To
20/11/2002 15:16:10
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00724519
Message ID:
00724903
Views:
25
In the debugger, you check the value of 'This' and it reports an object. Can you check the value of 'This.Name'?

Alan

>Alan,
>
>Thanks for trying to assist me. I made mymethod Public but it still produces an error.
>
>Does my explaination of the fact that I cannot see any of the "control.textbox" properties give you a hint as to what is causing the problem?
>
>Mike
>
>
>>You'll need to reset it to 'Public', or else only the base class can use it. I don't like it either, but I've been stung by it before too.
>>
>>Alan
>>
>>>Thanks for the reply Jose.
>>>
>>>mymethod is defined in the textbox base class. What do you mean by "selected it as Private". The only settings I see for methods is "Public, Protected or Hidden" and it is currently set to "Protected".
>>>
>>>The thing that is strange to me is the fact that when I suspend the code in the textbox.gotfocus event of the instance of the control in my form, I can trace thru the code that includes a DODEFAULT(). The debugger traces to the class code but then errors when it encounters the following
>>>
>>>
>>>WITH THIS
>>>   .mymethod()
>>>ENDWITH
>>>
>>>
>>>If I check what the value of "THIS" is, it is reported as an Object. However, if I try to see any of the properties like this.width or this.height, I get "Expression could not be evaluated"! Obviously VFP knows that this object exists. It just doesn't seem to know the details including the fact that mymethod exists.
>>>
>>>Any ideas.
>>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform