The "collection" object is undocumented in the Help. Optional source for contents from JF Nifenecker: https://extensions.libreoffice.org/assets/downloads/7/LibOBasic_09_StructDataTypes_Flat_A4_EN_v101.pdf by JP Ledure (telegram) -------8<------- The Collection object is indeed useful to know. The LO implementation looks like the Microsoft/VBA one: https://docs.microsoft.com/en-us/office/vba/language/reference/user-interface-help/collection-object. The SF Dictionary object is a superset of the Collection object. The implementation in SF is inspired by https://docs.microsoft.com/en-us/office/vba/language/reference/user-interface-help/dictionary-object Although similar, VBA proposes both mapping classes. BTW the SF Dictionary uses a Collection internally ... -------8<-------
The implementation of Collections in Basic is defined here as the BasicCollection class: https://opengrok.libreoffice.org/xref/core/basic/source/inc/sbunoobj.hxx and here: https://opengrok.libreoffice.org/xref/core/basic/source/classes/sb.cxx
Rafael Lima committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/help/commit/28499f409af62f1930f427ebf040f9a2cd6422b3 tdf#145067 Document the Basic Collection object