BASIC Script IDE

 

The Basic Script action encompasses a BASIC Script IDE, which is an Interactive Design Environment used for developing, examining, testing and executing BASIC scripts. To access the BASIC Script IDE, click the Edit Script button located in the BASIC Script action's General tab properties.

Basic Script IDE Interface


The Basic Script IDE consists of four interfaces:

  1. Main IDE (Interactive Design Environment): The main IDE (shown below) is the primary interface where a macro or module can be created, loaded from disk or edited. Other interfaces can be accessed from the main IDE.
  2. References Dialog: The References dialog shows the current macro/module's references.
  3. Object Browser: The Object Browser displays information about any special data types that are available.

  4. UserDialog Editor: The UserDialog can be used to create custom dialog boxes for use in the task.

Window Views

The BASIC Script IDE contains four window views separated by tabs. These views can be displayed/hidden by selecting the View menu and checking/un-checking the desired view. Certain views only appear in particular situations. The available BASIC IDE Window Views are:

Immediate Window

 The Immediate tab view can be used to evaluate an expression, assign a variable or call a subroutine.

 

Watch Window

The Watch tab view lists the variables, functions and expressions that are calculated and displayed.

 

Stack Window

     

The Stack tab view lists the lines which called the current statement.

 

Loaded Window

The Loaded tab view lists all of the currently active macros and loaded modules.

↑ Top of Page

  Other Sections

The BASIC IDE contains other sections which assists in developing, examining and testing BASIC scripts:

Object and Proc Lists

The Object list-box shows all the objects for the current module and the Proc list-box displays the procedures for the current object.

 

Sheet Tabs

Each sheet has its own Sheet tab.

 

Break Bar

 

The Break Bar shows which lines have break points. It also shows which line is next to execute. A dot at the front of the line indicates a break point.

Menus


The BASIC Script IDE contains a list of general menu items. More on each menu item and their list of options are entered below.

NOTE: All available menu items can also be accessed by right-clicking the mouse.

File Menu

The File menu includes options to update added or modified data and close the BASIC IDE.

Item

Description

Update

Saves new information and updates modified information.  

Close

Closed the BASIC IDE Window. If data has been entered or modified and the Update option was not selected, a dialog will appear promoting whether to save changes to the script.

Edit Menu

The Edit provides the normal editing options, such as Cut, Copy, Paste, Delete, Select All, etc.

Item

Description

Hot Key

Undo

Undo the last edit. Hot Key: Ctrl+Z

Ctrl+Z

Redo

Redo the last undo.

Ctrl+Y

Cut

Move the selected text to the Clipboard.

Ctrl+X

Copy

Copy the selected text to the Clipboard.

Ctrl+C

Paste

Paste the Clipboard text over the selected text.

Ctrl+V

Delete

Delete the selected text.

Del

Select All

Select all of the text.

 

Indent

Move selected lines right.

Tab

Outdent

Move selected lines left.

Shift+Tab

Tab As Spaces

Toggle the insert tab as spaces mode on/off.  

 

Find...

Show the parameter information.

Ctrl+F

Replace...

Replace a string with another.

Ctrl+R

Again

Repeat last find or replace.

F3

Complete Word

Complete the word.

Ctrl+Space

Parameter Info

Displays the parameter information.

Ctrl+I

UserDialog...

Edit a UserDialog with the use of the UserDialog Editor.

 

References

Edit the macro/module's references.

 

Properties

Edit the module's properties.

 

↑ Top of Page

  View Menu

The View menu provides options that alter the look of the BASIC IDE interface.

Item

Description

Hot Key

Macro

Activate the macro editing window.

Ctrl+A

Immediate

Show the Immediate output window.

Ctrl+E

Watch

Show the Watch expressions window.

Ctrl+X

Stack

Show the Call Stack window.

Ctrl+T

Loaded

Show the Loaded macros/modules window.

Ctrl+L

Toolbar

Toggle the toolbar on/off.

 

Status Bar

Toggle the status bar on/off.

 

Edit Buttons

Toggle the edit buttons on/off.

 

Always Split

Toggle the split on/off. Split separates the tabbed windows from the edit area.

 

Font...

Sets the display font.

 

Tab Width

Set the tab width.

 

Object/Proc

Select the Object/Procedures list display mode.

 

 

Macro Menu

The Macro menu provides options for starting macros, stopping macros and extending the Basic language.

Item

Description

Hot Key

Run

Run the macro to completion

F5

Pause

Stop the macro/module. If this option is selected, execution can be continued.

Esc

End

Terminate the macro/module. If this option is selected, execution cannot be continued.

 

Debug Menu

The Debug menu provides the options for debugging macros/modules.

Item

Description

Hot Key

Step Into

Execute the current line. If the current line is a subroutine or function call, stop on the first line of that subroutine or function. (If the macro is not active, start it.)

F8

Step Over

Execute to the next line. If the current line is a subroutine or function call, execute that subroutine of function completely.

Shift+F8

Step Out

Step out of the current subroutine or function call.

Ctrl+F8

Step to Cursor

Execute until the line the cursor is on is the current line. (If the macro is not active, start it.)

F7

Toggle Break

Toggle the break point on the current line.

Ctrl+L

Clear All Breaks

Clear all break points.

Shift+Ctrl+F9

Quick Watch

Show the value of the expression under of the cursor in the immediate window.

Shift+F9

Add Watch

Add the expression under of the cursor in the watch window.

 

Browse

Show the methods of the expression under of the cursor. (For more details, see Object Browser)

 

Set Next Statement

Set the next statement to be executed. Only statements in the current subroutine/function can be selected.

 

Show Next Statement

Show the next statement to be executed.

 

Help Menu

The Help menu provides BASIC IDE help as well as current version.

Item

Description

Hot Key

Editor Help

Show the Basic Editor Help.

F5

Language Help

Show Basic language Help.

Shift+F1

Topic Search

Show Basic language help for the keyword under the cursor.

F1

About

Show the current version

 

See Also

BASIC Scripts

BASIC Script Action

About Expressions

Introduction to AML

See Also


BASIC Scripts | BASIC Script Action | About Expressions | Introduction to AML


↑ Top of Page