Controlling Component Editing


Controlling whether or not a component can be edited at a location is an important part of an integrated VC/m solution. It is a general principle that when component is edited, the copy which is being edited must be the master copy.

For text and binary components, this is achieved by setting the file to be read-only or not at the operating system level. A file is read-only unless it is the master copy (i.e. checked-out). This behavior is controlled by:

set ^%vcvc("setReadOnly")=1

More sophisticated interfaces are also available or can be created.

For Caché or M routines, VC/m provides a variety of ways to interface to the editors.

No standard methods are available for controlling access to global components, so strict procedures must be followed for these.