Using Module Code for different 1C:Enterprise Run Modes
You can use 1C:Enterprise systems in file-based, client/server or managed application mode, or in a COM connection session.
You can use the Designer to configure usage of procedures and functions of the shared modules and object modules for each mode.
The code should be written considering availability of objects, its properties and methods based on the run mode.