Working with Scripts

 

This topic describes the general procedures for working with scripts in Scripter. See the Suggested Reading for additional information.

 

New Scripts

To create a new script, select the File | New command. A blank script sheet is created. You can start typing script instructions into this sheet. If you edit more than one sheet at a time, click the sheet tabs to switch between them or select the Sheet | 1, Sheet | 2, etc. menu commands. You can edit up to nine code sheets at the same time.

 

New Modules

To create a custom ActiveX object, select File | New Module, and choose either Object Module or Class Module (choosing Code Module is the same as the File | New command).

 

Existing Scripts and Modules

To open an existing script, select the File | Open command. To open a script you opened recently, click its name at the bottom of the File menu. To open other modules used by your script, select the Sheet | Open Uses command.

 

Saving Scripts

Once a script is complete, you can save the script by using the File | Save or File | Save As commands. If a script has not been changed since the last save, the Save command is disabled.

 

Closing Scripts

To close the active script, use File | Close, use Sheet | Close, or double-click the sheet tab of the sheet. Close all open scripts with Sheet | Close All.

 

 

See Also

Introducing Scripter

MapViewer Object Model

Running Scripts

Debugging Scripts

Object Hierarchy