User Tools

Site Tools


Sidebar

project:openproject

openproject()

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.

Usage

var xpjpath = "C:/My project/My project.xpj";
openproject(xpjpath);

Parameters

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

Return Values

Value Meaning
true The project was opened
false The project could not be opened
project/openproject.txt · Last modified: 2017/06/03 13:18 (external edit)