Pomoc za LibreOffice 7.6
Definuje nastajenja za Basic IDE (integrowana wuwiwarska wokolina), kotrež pomhaja makra w Basic wobdźěłać.
Tuta funkcija programowarjej Basic pomha, kod wudospołnić, zadźěwa přewobšěrnemu pisanskemu dźěłu a pomha programowe zmylki redukować.
Pokazuje metody objekta Basic. Wudospołnjenje koda metody objekta Basic pokaza, pod wuměnjenjom, zo objekt je rozšěrjeny UNO-typ. Njefunguje z powšitkownym objekt abo druhimi typami Basic.
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.
Example:
is a valid variable definition, its methods can be accessed via the dot (".") operator:
These are coding helpers for the Basic programmer.
Correct cases of Basic variables and keywords while typing. LibreOffice Basic IDE will modify the typing of Basic statements and Basic variables of your code to improve coding style and readability. Modifications of the code are based on the program's variables declarations and on the LibreOffice Basic commands parsed.
Example:
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).
Examples:
Integer, String, ReDim, ElseIf, etc...
Automatically close open quotes. LibreOffice Basic IDE will add a closing quote each time you type an opening quote. Handy for inserting strings in the Basic code.
Automatically close open parenthesis. LibreOffice Basic IDE will add a closing parenthesis “)” each time you type an opening parenthesis “(“.
Automatically insert closing statements for procedures. LibreOffice Basic IDE will add a statement End Sub or End Function after you type a Sub or Function statement and press Enter.
Allow UNO object types as valid Basic types. This feature extend the Basic programming language standard types with the LibreOffice UNO types. This allows the programmer to define variables with the right UNO type and is necessary for the code completion feature.
Example:
The use of UNO Extended Types in Basic programs can restrain interoperability of the program when executed in other office suites.