Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP bug? - class doesn't work right
Message
From
08/09/1999 21:58:13
Adam Weisberg
Adam Weisberg Consulting
Athens, Ohio, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
VFP bug? - class doesn't work right
Miscellaneous
Thread ID:
00262706
Message ID:
00262706
Views:
44
I had a class txtdata subclassed from textbox in library xxdata. I subclassed txtdata into a specialized textbox txtDupWarn and put it in a new library, "anwdata". It did a weird thing: it no longer executed a LostFocus event at all. (For instance, Wait Window 'LostFocus' in the txtDupWarn lostfocus does nothing.)

I tried recompiling the class but it did not work. I created a new class library and subclassed txtdata again into a new "txtdupwarn" and cut and pasted the method code. I added the one or two properties again also - just totally rewrote the class. It still had the problem.

Now it gets interesting: I noticed that the properties window when I put a txtDupWarn on a form it's .Classlib property is "xxdata"! But it's not in xxdata, it's in anwdata. (It merely inherets from txtData in xxdata.) So I figure, what if I move it into the xxData classlib. And Loe and Behold, it works. I got the Lostfocus back.

What's up with that? (I'm using VFP 5.0a.)
Adam
Reply
Map
View

Click here to load this message in the networking platform