[Basic] Enum.erations or Constant groups

Creating Extension - Shared Libraries
Forum rules
For sharing working examples of macros / scripts. These can be in any script language supported by OpenOffice.org [Basic, Python, Netbean] or as source code files in Java or C# even - but requires the actual source code listing. This forum is not for asking questions about writing your own macros.

[Basic] Enum.erations or Constant groups

Postby LibreOfficiant » Wed Oct 17, 2018 6:35 pm

Using Enum.erations, aka constant groups in API, is possible with Basic. Enumerated values must be defined as 'Long'

Extending enumerated values to dates, numbers, text or any data type is also possible using Basic.

Enum_en.odt demo file can be found in the french forum ( too big to fit in here :| )
libO 5.4 64bit, (PortableApps: libO 6.0, aOO 4.1, OOo 3.2 32bit) on Win7/Win10 x64 | aOO 4.1.x & libO 5.4.x on Mint 18 Sarah & OSX 10.9 Mavericks x64
Python toolbox: Geany, PyCharm and APSO, MRI extensions..
https://wiki.documentfoundation.org/Macros/Design_Guide
User avatar
LibreOfficiant
 
Posts: 7
Joined: Wed Jan 25, 2017 9:36 pm

Return to Code Snippets

Who is online

Users browsing this forum: No registered users and 1 guest