Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using ON KEY LABEL with a class based on a prg.
Message
 
 
To
21/10/2005 19:06:06
Todd Cottengim
Alpine Land Information Services
Redding, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01061339
Message ID:
01061346
Views:
8
WOuld SYS(1272) help?

>I have a method in a class (PRG based) that due to an Active X control used on the form needs to use ON KEY LABEL to trap some keyboard entry (Y/N/Esc). This class is a property on the form using the Active X. The method was formerly on the form and I was able to use the following ...
>
>
>ON KEY LABEL Y _screen.activeform.cKeypress = 'Y'
>
>
>Does anyone have a suggestion how I can do this provded the fact that the class does not know the property name it is assigned to on the form. Yes, I could hardcode a property name in the class' method but the anytime I used this class with a form, it would have to be assigned to a property with the same name. I suppose I could leave the ".cKeypress" property on the form and give it an assign method but I am trying to create a universal class that does not rely on properties on its parent form.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform