| Name | Open |
|---|---|
| Type | Method |
| Summary | Opens a named document |
| Prototype | IDispatch* Open(BSTR FileName); |
| Description | Returns an object which can be used to refer to the new document. You should be very cautious about storing the object reference of the world in a global variable, because if the world is closed then that reference becomes invalid, which will very likely lead to an access violation (program crash). You are better off using "world.getworld (name)" every time you need to get a reference to the world, and checking if it "is nothing" as in the example. You can use Open to open either a MUSHclient world (ie. a MCL file) or a text file (ie. a TXT file). If the named document is already open then "open" does *not* open another copy, rather it activates that document (brings it to the front). |
| VBscript example | |
| Jscript example | |
| PerlScript example | |
| Returns | An object reference to the named world, if it was found. |
See also ...