Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control class problem
Message
From
19/11/2002 16:14:52
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Control class problem
Miscellaneous
Thread ID:
00724519
Message ID:
00724519
Views:
42
I have a textbox and a command button placed within a "control" class. The textbox is based on a textbox class that has some code in the gotfocus event. That code calls a custom method (mymethod) in the textbox class.

When I run my VFP7 form that has an instance of my "control" on it, it errors out when I click on it. VFP says that the "property" mymethod (its a method) does not exist. In particular, I have something like the following code in the gotfocus of the textbox class:
WITH THIS
   .mymethod()
ENDWITH
After the error occurs, I suspend the and go to the debugger. "this" evaluates to an object as I expected. However, I cannot see any properties for it! I believe my problem is something to do with hidden/protected stuff but I've tried to look into it and can't seem to make it work.

Anybody have any ideas as to why this problem happens? If I simply use an instance of my textbox class on the form and run it, everything works. Its only when I try to make a "control" control that it fails.

TIA

Mike
Next
Reply
Map
View

Click here to load this message in the networking platform