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