OpenOffice Basic: Difference between revisions

Content deleted Content added
Reverted to revision 623945701 by Rautamiekka (talk). (TW)
Chtfn (talk | contribs)
m External links: fix LibreOffice Basic Help link
 
(25 intermediate revisions by 16 users not shown)
Line 1:
{{Short description|Programming language}}
{{inlineno citationsfootnotes|date=December 2013}}
[[File:TriBasicExample.png|thumb|Three modern Basic variants: [[Mono (software)|Mono]] Basic, OpenOffice Basic and [[Gambas]].]]
'''OpenOffice Basic''' (formerly known as StarOffice Basic or '''StarBasic''' or '''OOoBasic''') is a dialect of the [[programming language]] [[BASIC]] that originated with the [[StarOffice]] [[Productivity software#Office suite|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 itself is similar to other dialects of BASIC, such as [[Microsoft]]'s [[Visual Basic for Applications|VBA]] (VBA), the [[application programming interface]] (API) is very different, as the example below of a [[Macro (computer science)|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.
 
<syntaxhighlight lang="oobasvbnet">
<!--oobas = openoffice basic; see [[mw:Extension:SyntaxHighlight_GeSHi#Supported_languages]] -->
<syntaxhighlight lang="oobas">
Sub ParaCount
'
Line 35 ⟶ 34:
 
== See also ==
* [[Comparison of office suites]]
 
== Further reading ==
* {{Cite book|first=James|last=Steinberg|title=Open Office Basic: An Introduction|ISBNyear=2012 |isbn=978-1481270939|publisher=CreateSpace Independent Publishing Platform}}
 
== External links ==
* [http://wiki.services.openoffice.org/wiki/Documentation/BASIC_Guide OpenOffice.org BASIC Programming Guide] wiki
 
* [https://help.libreoffice.org/latest/en-US/text/sbasic/shared/main0601.html LibreOffice Basic Help]
=== BASIC Macros ===
* [https://www.manfridayit.co.uk/blog/coding-vba-tips-snippets/using-vb-net-to-update-open-office-calc-spreadsheet/ Automating Open Office in VB.NET]
*[http://wiki.services.openoffice.org/wiki/Documentation/BASIC_Guide OpenOffice.org BASIC Programming Guide] wiki
*[http://wiki.services.openoffice.org/wiki/VBA OpenOffice.org VBA emulation model project] (still in heavy development)
*[http://www.pitonyak.org/oo.php Andrew Pitonyak's macro information]
 
=== OpenOffice.org API ===
*[http://api.openoffice.org/ OpenOffice.org/StarOffice API Project Page]
**[http://api.openoffice.org/SDK/index.html OpenOffice.org SDK]
**[http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide OpenOffice.org Developer's Guide]
**[http://api.openoffice.org/docs/common/ref/com/sun/star/module-ix.html API reference manual]
 
{{OpenOffice}}
Line 59 ⟶ 50:
[[Category:BASIC programming language family]]
[[Category:OpenOffice|Basic]]
[[Category:LibreOffice|Basic]]