Creating Customized Component Drivers


The driver routine performs the physical manipulation of the component for VC/m. Each time VC/m needs to copy, delete or otherwise access a component, it calls the appropriate function in the component driver routine. Each function is simple and can be written directly in the M programming language.

A programmer can create a customized component driver to handle components in ways other than those provided by the standard VC/m component drivers. In order for VC/m to recognize the new driver, an entry must be set-up in the component driver table. A one to three-character uppercase code should be used to identify the new component type and a routine created whose name begins %vc1x and is followed by the component type code. For example, a new component type ABC requires a component driver named %vc1xABC. A number of functions with standard line labels must be incorporated into the component driver.