Filling with Code

The macro window can be used to create or edit the main application code using the Fore language implemented in the platform.

Objects View in Macro Window

All objects opened in the development environment are shown as child MDI windows. To manage the layout of windows of opened objects, use commands of the Window group in the main menu of the development environment. Each window of the opened object corresponds to a tab of the child MDI window. To change the active object, click the required tab or select an object in the list organized as the Window main menu options. The tabs have a context menu that is used to save or close corresponding object.

There is also a context menu called by clicking the white space in the tab area. The context menu includes the following commands:

To close an object, select the appropriate context menu item or execute one of the following operations:

If there is any data that has not been saved, the data saving dialog box opens.

Writing Macro Code

Code is written in the Fore language. For details see the Fore Language Guide section.

 For details on advanced code development options see the following sections:

Navigation by Code

In case of large macros, one can use two drop-down lists in the upper part of the macro window to make code navigation easier.

To show the lists in the web application, select the View > Code Navigation main menu item.

The first list contains names of all classes and namespaces implemented in a unit. The second list includes all variables, procedures, functions and custom properties described in the selected class. To go to the required description, first select the appropriate name of the class (namespace) and then the name of the required procedure (function, variable, etc.). If a unit contains no descriptions of classes (namespaces), the first list shows only the global namespace, that is, Global Scope. Principles of working with drop-down lists are described in the Basic Interface Elements: Combo Boxes subsection.

The right part of the toolbar contains buttons for working with code navigation history.

To return to the previous code position, click the button or press ALT+LEFT. To go to the next position created before, click the button or press ALT+RIGHT. The buttons have a drop-down menu with a list of previously used code positions. If required, one can select a specific position and go to it.

To quickly go to the required line, select the Edit > Go to Line main menu item, or press CTRL+G. In the dialog box that opens enter line number.

To make the search for the required line easier, you can enable the code line numbering:

To do this, select the Show Line Numbers checkbox in development environment settings subsection.

Going to Object Definition

You can view the information on classes/procedures/functions used in code. To go to code element description:

If system classes/procedures/functions are used, this enables the user to go to the appropriate element and its description in the class inspector. When the cursor hovers over custom code elements, this enables the user to go to the place where the called classes/procedures/functions are implemented.

To call help by element, in which area cursor is placed, press the F1 key. If cursor is placed in variable area, help will be called for the type of variable.

See also:

Developing User Application | Running and Debugging