Basic IDE

Defines the settings for the Basic IDE (Integrated Development Environment) to help edit macros in Basic.

Warning Icon

This feature is experimental and may produce errors or behave unexpectedly. To enable it anyway, choose - LibreOffice - Advanced and select Enable experimental features checkbox.


Pre pr├şstup k tomuto pr├şkazu...

Choose - LibreOffice - Basic IDE.


Dokon─Źovanie k├│du

This feature helps the Basic programmer to complete the code, saves extensive typing and helps to reduce coding errors.

Zapn├║┼ą dokon─Źovanie k├│du

Zobraz├ş met├│dy objektu jazyka Basic. Dopl┼łovanie k├│du zobraz├ş met├│dy Basic objektu za podmienky, ┼że ide o roz┼í├şren├Ż UNO typ. Nefunguje s typmi Basicu z├íkladn├Ż Objekt a Variant.

When a variable is a UNO interface or structure, a list box appears when pressing the dot after a variable's name (like aVar. [list box appears] ). Its methods and variables are listed in the list box, displayed just below. You can navigate between the suggested methods and variables with the arrow keys. To insert the selected entry, press the Enter key or double click on it with the mouse. To cancel the list box, press the Esc key.

When typing the method's name, and pressing the Tab key once, it will complete the selected entry, pressing the Tab key again will cycle through the matches with the longest prefix. For example, when aVar.aMeth is typed, it will cycle through aMeth1, aMethod2, aMethod3 entries, and other entries are not hidden.

Pr├şklady


    Dim aPicker As com.sun.star.ui.dialogs.XFilePicker
  

is a valid variable definition, its methods can be accessed via the dot (".") operator:


    aPicker.getDisplayDirectory()
  

Návrh kódu

These are coding helpers for the Basic programmer.

Automatická oprava

Pri p├şsan├ş oprav├ş ve─żkos┼ą p├şsmen premenn├Żch a k─ż├║─Źov├Żch slov jazyka Basic. LibreOffice Basic IDE uprav├ş z├ípis z├íkladn├Żch pr├şkazov a z├íkladn├Żch premenn├Żch k├│du aby sa zlep┼íil ┼ít├Żl a ─Źitate─żnos┼ą. ├Üpravy k├│du s├║ zalo┼żen├ę na deklar├íci├ích premenn├Żch programu a na analyzovan├Żch z├íkladn├Żch pr├şkazoch LibreOffice.

Pr├şklady


    Dim intVar as Integer
  

and when writing Intvar, will be corrected to intVar to match the case existing in the declaration of intVar .

Basic keywords are also automatically corrected (the list of the keywords is grabbed out from the parser).

Pr├şklady

Integer, String, ReDim, ElseIf, etc...

Automaticky ukon─Źi┼ą ├║vodzovky

Automaticky uzatv├íra┼ą otvoren├ę ├║vodzovky. LibreOffice Basic IDE prid├í koncov├║ ├║vodzovku zaka┼żd├Żm, ke─Ć nap├ş┼íete ├║vodn├║ ├║vodzovku. Je to u┼żito─Źn├ę pri vkladan├ş re┼ąazcov do k├│du Basicu.

Automaticky ukon─Źi┼ą z├ítvorky

Automaticky uzatv├íra┼ą otvoren├ę z├ítvorky. LibreOffice Basic LibreOffice Basic IDE prid├í zatv├íraciu z├ítvorku ÔÇ×)ÔÇť zaka┼żd├Żm, ke─Ć zad├íte ├║vodn├║ z├ítvorku ÔÇ×(ÔÇť.

Automaticky ukon─Źi┼ą proced├║ry

Automaticky bude vklada┼ą uzatv├íracie pr├şkazy pre proced├║ry. LibreOffice Basic IDE vlo┼ż├ş pr├şkaz End Sub alebo End Function potom, ako vlo┼ż├şte pr├şkaz Sub alebo Function a stla─Ź├şte Enter.

Vlastnosti jazyka

Pou┼żi┼ą roz┼í├şren├ę typy

Povol├ş objekty typu UNO ako platn├ę typy jazyka Basic. T├íto funkcia roz┼íiruje z├íkladn├ę ┼ítandardn├ę typy Basicu o typy LibreOffice UNO. To umo┼ż┼łuje program├ítorovi definova┼ą premenn├ę so spr├ívnym typom UNO, ─Źo je potrebn├ę pre funkciu dokon─Źovania k├│du.

Pr├şklady


    Sub Some_Calc_UNO_Types
    REM A spreadsheet object
        Dim oSheet As com.sun.star.sheet.XSpreadsheet
        oSheet = ThisComponent.getSheets().getByIndex(0)
    REM A cell object
        Dim oCell As com.sun.star.table.XCell
        oCell = oSheet.getCellByPosition(0,0)
    End Sub
  
Warning Icon

The use of UNO Extended Types in Basic programs can restrain interoperability of the program when executed in other office suites.


Please support us!