Controller.Load Method

Loads the files associated with a GPL project into memory and compiles them so that the project procedures are ready to be executed.

Controller.Load(project_folder_path)

Prerequisites

The project folder must contain a valid project file named Project.gpr. It describes the remaining files within the project. The project must not be currently loaded.

Parameters

project_folder_path

A required string expression for the name of the folder containing the project to be loaded.  Normally the folder is on the "/flash" device.

Remarks

This method loads a project by first creating a folder in the controller's memory section that is allocated for GPL projects.  Then, all of the files associated with the project are copied into the memory folder. The project is then compiled so that the loaded procedures are ready to be executed. No compilation errors are displayed on the console. Examine the file /GPL/project_name/Compile.log for a listing of compiler messages. This method will throw an exception if the project cannot be loaded, if it is already loaded, or if compilation errors occur.

Examples

Dim th As Thread
Controller.Load("/flash/projects/Test")
th = New Thread("Main", "Test", "Thread2")
th.Start()

See Also

Controller Class | Controller.Unload | Thread.Start