Procedure OpenDocument(document)

OpenDocument

The procedure OpenDocument uses the current association of Windows to open documents, run programs, etc. Its procedureality is similar to that of the Run command in the Start Menu of Windows. You can use it, for instance, to display an HTML file using the default web browser, open a Word document, or initiate an e-mail session.

OpenDocument(
        document          ! (input) string expression
        )

Arguments

document

A string expression representing the document or program you want to open.

Return Value

The procedure returns 1 on success, or 0 otherwise.

Example

OpenDocument( "http://www.aimms.com" );
OpenDocument( "mailto:info@aimms.com" );
OpenDocument( "anyfile.doc" );
OpenDocument( "c:\\windows" );

See also

The procedure Execute.