Contents
Index 🔎︎

# The Basic Editor

The Basic Editor provides the standard editing functions you are familiar with when working in a text document. It supports the functions of the Edit menu (Cut, Delete, Paste), the ability to select text with the Shift key, as well as cursor positioning functions (for example, moving from word to word with Command Ctrl and the arrow keys).

Long lines can be split into several parts by inserting a space and an underline character _ as the last two characters of a line. This connects the line with the following line to one logical line. (If "Option Compatible" is used in the same Basic module, the line continuation feature is also valid for comment lines.)

If you press the Run BASIC icon on the Macro bar, program execution starts at the first line of the Basic editor. The program executes the first Sub or Function and then program execution stops. The "Sub Main" does not take precedence on program execution.

Insert your Basic code between the Sub Main and End Sub lines that you see when you first open the IDE. Alternatively, delete all lines and then enter your own Basic code.

## Navigācija projektā

### Bibliotēkas sarakstlodziņš

Select a library from the Library list at the left of the toolbar to load the library in the editor. The first module of the selected library will be displayed.

### Objektu katalogs

Klikšķiniet Objektu katalogs ikonu Makro rīkjoslā, lai attēlotu objektu katalogu.

The dialog shows a list of all existing objects in a hierarchical representation. Double-clicking a list entry opens its subordinate objects.

To display a certain module in the Editor or to position the cursor in a selected SUB or FUNCTION, double click on the corresponding entry.

## Basic pirmkoda saglabāšana un ielādēšana

Jūs varat saglabāt Basic kodu teksta datnē saglabāšanai un importēšanai citās programmēšanas sistēmās.

Jūs nevarat saglabāt Basic dialogus teksta datnē.

### Pirmkoda saglabāšana teksta datnē

1. No objektu kataloga atlasiet moduli, kuru jūs vēlaties eksportēt kā tekstu.

2. Klikšķiniet Saglabāt avotu kā ikonu Makro rīkjoslā.

3. Atlasiet datnes nosaukumu un klikšķiniet Labi, lai saglabātu datni.

### Pirmkoda ielādēšana no teksta datnes

1. No objektu kataloga atlasiet moduli, kurā jūs vēlaties importēt pirmkodu.

2. Novietojiet kursoru tur, kur jūs vēlaties ievietot programmas kodu.

3. Klikšķiniet Ievietot avota tekstu ikonu Makro rīkjoslā.

4. Atlasiet teksta datni, kura satur pirmkodu un klikšķiniet Labi.

Saistītie temati

Basic IDE

Objektu kataloga lietošana