|
Contents | Previous | Next | Subchapters |
| Syntax |
cocreate(server program ID) |
| See Also | cowith |
cocreate function returns
a character row vector that identifies the currently connected server.
O-Matrix may be connected to no more than one server at a time. If
cocreate is called while a server is connected the current
connection is released before the new request is established. Calling
the O-Matrix clear command will terminate all
server connections.
cocreate("Excel.Application")
O-Matrix will initialize the Windows OLE/COM services and create a
connection to the Excel Application object. If you continue the example
above by entering
cocreate
O-Matrix will respond
Excel.Application
If you continue the example by entering
cocreate("Word.Application")
cocreate
O-Matrix will respond
Word.Application