Wikipedia / OpenOffice Basic
Wikipedia / OpenOffice Basic
OpenOffice Basic (formerly known as StarOffice Basic or StarBasic or OOoBasic) is a dialect of the programming language BASIC that originated with the StarOffice office suite and spread through OpenOffice.org and derivatives such as Apache OpenOffice and LibreOffice (where it is known as LibreOffice Basic). The language is a domain-specific programming language which specifically serves the OpenOffice application suite.
Example
Although OpenOffice Basic is similar to other dialects of BASIC, such as Microsoft's Visual Basic for Applications (VBA), the application programming interface (API) is very different, as the example below of a macro illustrates. While there is a much easier way to obtain the "paragraph count" document property, the example shows the fundamental methods for accessing each paragraph in a text document, sequentially.
VBA compatibility
Partial support for VBA API under was introduced with OpenOffice 2.x circa 2005. An underlying feature is , which enables a number of language features found in VBA (as well as other extensions beyond the StarBasic original).
These features has been inherited into later versions as well as LibreOffice. LibreOffice has further built upon to provide more compatibility features and new features. This option is implicitly enabled when opening a Microsoft Office document containing VBA code.
The following Option directives are found in OpenOffice Basic and its dialects:
See also
Further reading
References
External links