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--