Contents Previous Next Subchapters

Starting O-Matrix
Syntax status = OMServer.Start(profileString)
See Also comopen

Description
Start a new instance of O-Matrix or the O-Matrix Run-Time Engine. The character row vector profileString is the Windows profile string which specifies the installation location for O-Matrix. The profile string is located in the [OMatrix] section of the WIN.INI file in the system directory, (typically \windows). The profileString for O-Matrix is of the form StartupPath<version number>, and the profileString for the run-time engine is of the form, StartupPath<version number>RTE. For example, on a machine that has O-Matrix version 5.81 installed, and version 5.81 of the run-time engine installed, the WIN.INI file will contain a section that looks like
[OMatrix]
StartupPath5.81RTE=c:\omrte
StartupPath5.81=c:\omwin
The OMServer.Start method only creates a new instance of O-Matrix or the O-Matrix run-time engine. The OMServer.Open method must be called before your client application can communicate with O-Matrix.

The returned value status is an integer OM Server Status code. This value will equal 1 if this function succeeded.

Example
See the file StartOM.VBS in the COM\Scripts directory of your installation for examples of starting O-Matrix and the run-time engine.