Code Modules: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
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. | 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 New Code Module". You can then add code in BASIC or JavaScript. | |||
# Under the Project Menu, choose "Add Existing Code Module". 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]]. | |||
{| class="wikitable" | {| class="wikitable" |
Revision as of 20:51, 30 November 2013
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 New Code Module". You can then add code in BASIC or JavaScript.
- Under the Project Menu, choose "Add Existing Code Module". 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.
File Type | Action |
---|---|
.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. |
.js | JavaScript code. Will be included in your app at runtime. |
.css | CSS formatting. Will be included in your app at runtime. |
all others | Will be included in the manifest and deployed with your app. This can include .jpg, ,gif, .png, .wav and others. |