Editor Basic

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 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.

Ikon Tip

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.


Navigasi dalam Proyek

Daftar Pustaka

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.

Katalog Objek

Klik ikon Katalog Objek Icon pada baris alat Makro untuk menampilkan katalog objek.

Dialog tersebut menampilkan daftar seluruh objek yang ada dalam urutan bertingkat. Klik ganda pada sebuah entri daftar akan membuka subordinat objek.

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.

Menyimpan dan Memuat Kode Sumber Basic

Anda dapat menyimpan kode Basic di berkas teks untuk menyimpan dan mengimpornya di sistem pemrograman lain.

Ikon Peringatan

Anda tidak dapat menyimpan dialog Basic dalam berkas teks.


Menyimpan Kode Sumber dalam File Teks

  1. Memilih modul yang Anda ingini untuk diekspor sebagai teks dari katalog objek.

  2. Klik ikon Simpan Sumber Sebagai pada baris alat Makro.

  3. Pilih nama berkas dan klik Oke untuk menyimpan berkasnya.

Memuat Kode Sumber dari File Teks

  1. Memilih modul yang Anda ingini untuk diimpor kode sumbernya dari katalog objek.

  2. Posisikan kursor di mana Anda hendak menyisipkan kode program.

  3. Klik ikon Sisip Teks Sumber pada baris alat Makro.

  4. Pilih berkas teks yang mengandung kode sumber dan klik Oke.