StarOffice BASIC
StarOffice BASIC (also known under the name of StarBasic ) is a dialect of the computer programming language BASIC which is included in the continuations Bureautique S OpenOffice.org and StarOffice. It supports the Unicode.
Although StarBasic itself is similar to other dialects of the BASIC, such as Microsoft' S VBA, the API is very different, like the example hereafter shows it.
Sub DécompteParagraphes ' 'Account the number of paragraphs in the document text ' Dim Doc. Ace Object, Enum Ace Object, Long Ace Calculation Doc. = ThisComponent 'Is what (this object) this is a document text? Yew Not Doc.SupportsService (" com.sun.star.text.TextDocument") Then MsgBox " This macro must be launched since a document texte" , 64, " Error" Exit Sub End Yew Décompte=0 'Each component - paragraph or table Examines? Enum=Doc.Text.CreateEnumeration While Enum.HasMoreElements TextEl=Enum.NextElement 'Is the component a paragraph? Yew TextEl.SupportsService (" com.sun.star.text. Paragraph") Then Décompte=Décompte+1 End Yew Wend 'Poster the result MsgBox Deducts, 0, " Deduct paragraphes" End Sub
The following example shows that it is possible to use character unicode, for the names of variables. However syntactic coloring presents defects then. Sub of E monstration dim R E sultat ace string R E sultat = " essai" msgbox result End Sub
External bonds
BASIC Macros
- Macro and API Forum on StarOffice
- StarOffice 7 BASIC programmer' S guides
- StarOffice 8 Programming Guide for BASIC
- OpenOffice.org VBA emulation model project (still in heavy development)
- Andrew Pitonyak' S macro information
API StarOffice/OpenOffice.org
- API OpenOffice.org/StarOffice Project Page
- OpenOffice.org SDK
- OpenOffice.org 2.0 Developer' S Guide
StarOffice 8 Developer' S Guide API - refers manual
| Random links: | Oksana (actress) | Minium | Charles Angélique François Huchet of Bédoyère | Saleys | Antoine-César Gautier de Montdorge | Centre_de_Tami_Steinmetz_pour_la_recherche_de_paix |