>Hi,
> I was wondering in anybody know a method or property that would tell me if a specific object exist in a class.
> For example, I have a object called 'cntToolbar' that sometime appear in some forms, but not all ( I have more than 500 forms, so creating a logic variable and change it in all class would just take too much time). I wanted to implement code in the generic formToolbar class ( this is a class that is the parent of all other form of my application that contain any toolbar) that would activate a cntToolBar method by a keypress( I already know how this work) IF and ONLY IF the cntToolBar was put in a children form.
> I think I put all the informations needed to answer the question,but if anybody need more detail on it, I can try to give more in a reply.
Look at PEMSTATUS() in help. It can tell you if a Property, Event or Method exists. You might also want to look at the TYPE() function.