Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ON KEYLABEL DEL DO CLASS??
Message
 
To
20/10/1997 00:45:07
Chong Hanwah
Apic Systems Pteltd
Singapore, Singapore
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00055377
Message ID:
00055479
Views:
26
>>>Anyone Knows how to run a class's method in
>>> ON KEY LABEL DO
>>>Thks!
>>
>>ON KEY LABEL DEL MyClass.MyMethod()
>
>Thks but I tried and it gave me
> "object not found!"
>I had set classlib but it still gave me error!?
>
>Must the object be in the file .prg instead of .vcx??!
Chong,

The object must exist. You cannot run code in a classes method ever by any means, because classes don't exist at runtime. An object must be created from the class before you can run its code.

Also watch out for ON KEY LABEL, it is an intercommand interrupt and will interrupt running code with a branch out to the routine attached.

If you tell us more about what the goal is perhaps we can give you an easier way to accomplish that goal.
Previous
Reply
Map
View

Click here to load this message in the networking platform