Function that will open the project specified by the XPJ path. The function will then load the current project into the global variable currentProject.
Note: Always use this function or the function openprojectdialog() to open a project. This ensures that the global variable currentProject
is set. If this variable is not set, several functions in the library may not work as expected.
var xpjpath = "C:/My project/My project.xpj"; openproject(xpjpath);
Parameter | Data type | Required | Description |
---|---|---|---|
xpjpath | string | true | The full path to the project XPJ |
updateifrequired | boolean | If set to true the project will be updated if the project is from a previous version. Default is false |
Value | Meaning |
---|---|
true | The project was opened |
false | The project could not be opened |