gxDocumentExists (string sDocument) : int
Checks the validity of a document ID.
Parameters:
sDocument - document ID of the project. Normally a document ID consists of the string "document" followed by a number, such as "document0", "document1", etc.
Returns:
1 if the document exists, 0 otherwise.
Example:
string sDoc = "document0";
if (!(gxDocumentExists(sDoc)))
throw message("Document %name% does not exist!") << sDoc;
See also:
gxImportProject, gxStartAction
► latest version online