## Accessing an Object's Propreties, Methods, and Events

Objects are external classes that contain methods, properties and events.

Methods: Methods are functions that usually perform actions. This usually return a boolean value to determine whether or not the function succeeded. Methods are analogous to verbs in languages.

Properties: Properties allow you to read or sometime write certain characteristics or attributes of an object or control. Properties are analogous to adjectives in languages.

Events: Events are routines that get called when certain conditions are met. Events differ from methods and properties in that PC-DMIS is the source of the action, instead of the destination. To take advantage of events, the automation controller application must support events. Visual BASIC, for example supports events. Handling events involves declaring an object of the correct type and then adding handling functions for the different events. Currently events are found in only these objects:

- ApplicationObjectEvents

- Machine

- PartProgram

See the "Getting Started" topic for a list of hierarchal objects.

More:

Accessing Event Subroutines

Accessing Methods and Properites

Using the Object Browser in Other Editors