<<

Contents

Search

>>

 

Macros (Menu item File/Open/Macro)

 

Hyperlinks:

Delete Macros

Copy Macros

Print Macros

Macro Editor Settings

Insert Command

Find

 

 

Macros are program parts that are written in the macro language of Ebus-J. All macros are saved in a library. This library is an Ebus Index File which consists of the files ebusmacr, ebusmacr.i1 and ebusmacr.ebu in the current working directory.

 

 

 

Macroname: The macroname may only consist of letters, numbers and points.

 

The following function keys (Icons) are available:

 

F2: Select Macro: You can select one macro from all existing macros.

F3: Scroll forward: next macro

F4: Scroll backward: previous macro

F5: Delete Macros

F7: Select Macro (History): A macro from all lately used macros can be chosen.

F8: Copy Macros: Single macros or all macros or a program can be copied.

F9: Print Macros: Single macros or all macros or a program can be printed.

F12: Macro Editor Settings: Specifies the settings for the macro editor

 

When the field input is finished with <RETURN>, <TAB> or <Cursor down> the macro can be edited in the macro editor.

 

 

The macro editor has an own toolbar with the following Icons:

 

Save (Alt-3 or Ctrl/S)

Copy (Ctrl/C)

Cut (Ctrl/X)

Paste (Ctrl/V)

Undo (Alt-4)

Redo (Alt-5)

Print (Alt-8)

Find (Alt-9 or Ctrl/F)

Find next (Alt-0 or Ctrl/N)

 

The following additional keys are available:

CTRL/1: If a <Find what> and a <Replace by> is specified in the Find Dialog, the <Find what> string is replaced once.

CTRL/L: If a <Find what> and a <Replace by> is specified in the Find Dialog, all <Find what> strings are replaced in the whole macro.

 

Keywords are shown in colors:
IF THEN ELSE ENDIF, WHILE DO ENDDO, FOR ENDLOOP, CASE ENDCASE, ON ERROR END, FUNCTION ENDFUNC
MACRO
EBUS-Variables
Commands
Compiler-Instructions

 

When the cursor is on a line with an instruction MACRO, the macro can be edited with F10 or Ctrl/M. After editing is finished with ESC or F12 (save), program execution continues at the original macro. Submacros can be edited up to any nesting depth.

 

Selected texts (even several lines) can be shifted to the right and the left with

 

ALT+<Cursor right>,

Alt+<Cursor left>,

Shift+Alt+<Cursor right> and

Shift+Alt+<Cursor left>

 

With ALT+<Cursor right> a blank is inserted and with Shift+ALT+<Cursor right> a tabulator is inserted.

 

With ALT+<Cursor left> a blank space is removed and with Shift+ALT+<Cursor left> a tabulator is removed respectively.

 

Function keys (Icons) in Macro Editor:

 

F2: Insert field name of an Index File

F3: Insert macro name

F4: Insert command

F10: Edit submacro

F12: Save and close macro

 

In menu item Find any text can be searched in macros.