Editing JScript source code files
You can associate JScripts with various events that are fired by ArcPad forms, tools, and system objects. Although you can type a complete script in the Event Script text box for each event, it is often more efficient to type all the scripts needed for a customization file in a single JScript source code file as subroutines and functions. You can then call the appropriate subroutine or function in the Event Script text box for each event.
ArcPad Studio provides a JScript source code editor where you can type and debug your scripts. JScript syntax is automatically formatted and color coded as you type.
Finding text in a JScript source code file
- Create or open a JScript source code file.
- Click the Find button on the standard toolbar.
The Find dialog box appears.
- Type the text you want to find, then click Find Next.
- Repeat this step as necessary to find all occurrences of the text.
- Click the Repeat button to repeat the last search.
- Click Cancel to close the Find dialog box.
Replacing text in a JScript source code file
- Create or open a JScript source code file.
- Click the Edit menu, then click Replace.
The Replace dialog box appears.
- Type the text you want to replace in the Find what text box.
- Type the replacement text in the Replace with text box.
- Click Find Next to find the next occurrence of the text, then click Replace.
Repeat this step as necessary to replace all occurrences of the text, or click Replace All (instead of Replace) to replace all occurrences of the text without manually going through each occurrence.
- Click Cancel to close the Replace dialog box.