Code Modules allow you to add code to your project that is not associated with any particular form. The code can be contained in the project itself, or be a file external to the project file. All file types are supported.
There are three ways to add a Code Module to a Project:
- Under the Project Menu, choose "Add Existing Code File". Select the file you want to include from the dialog and it will be added.
- Drag the file from your desktop into the Project Explorer.
Code Modules get loaded into your project when you load your project. Changes which happen externally will not affect your project until you open it again. If you make changes to the file in the IDE, it will wipe out external changes made in the meantime.
Here is how Code Modules appear in the IDE:
Here is how various file types are handled:
|.bas||BASIC code. Will be translated and included in your app at runtime.|
|.cod||BASIC code. Will be translated and included in your app at runtime.|
|.css||CSS formatting. Will be included in your app at runtime.|
|.php||PHP code: will be installed on the server during deployment.|
|all others||Will be included in the manifest and deployed with your app. This can include .jpg, ,gif, .png, .wav and others.|