|
<< Click to Display Table of Contents >> Manual > Screen Creation Guide > Basic Operations of Panel Editor > Project Operations > Splitting the client configuration files |
Building with multiple client configuration files (AddResourceFile method)
Client configuration files can be developed in multiple parts.
To build it, you can import other client configuration files by calling the "AddResourceFile" method from the script of the main client configuration file. When you import, you can freely call and use the forms and objects in the imported configuration file just like other objects in your own configuration file.
Specifically, you can import it using the following code:
■ Importing other client configuration files
event OnInitialize()
{
::AddResourceFile("Client2.xml");
}
Importing is usually done from the OnInitialize event of root. If you pass the client configuration file name to the argument of the root method "AddResourceFile" used in the above script, the specified client configuration file will be imported. In this example, "Client2.xml" will be imported.
|
There can only be one root object in total. When you import another client configuration file using the AddResourceFile method, only the root object of the base client configuration file exists. If you have defined functions or variables in the root object of the imported client configuration file, they will be invalidated during import. |
|
You can import any number of times, and you can import multiple client setting files. However, the import source setting files must be implemented so that forms with the same folder name and form name are not duplicated. |