=================================================================== PyAnyContainer for OpenOffice.org Version: 20051009 (C) Paolo Mantovani, 2005 =================================================================== This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. (See the included file COPYING) Abstract ~~~~~~~~ PyAnyContainer is an add-on package for OpenOffice.org 1.1 and above. This package is addressed to StarBASIC developers StarBASIC does not provide any built-in feature similar to VB/VBA collections. The purpose of this package is not to supply an "emulation" of VBA collections, but to provide a concrete implementation of the same concept with the UNO fashion The package provides two UNO services: 1. org.openoffice.comp.AnyNameContainer 2. org.openoffice.comp.AnyIndexContainer the use is very simple and straightforward since the services are based on the same interfaces of many other containers that you can find in the OpenOffice.org API Example: ~~~~~~~~ REM ***** BASIC ***** sub test oAnyNameCont = createUnoService("org.openoffice.comp.AnyNameContainer") For I = 0 To 1000 oAnyNameCont.insertByName("key"& I, "element: " & I) Next I print oAnyNameCont.key539 print oAnyNameCont.getByName("key539") oAnyNameCont.removeByName("key539") end sub Requirements ~~~~~~~~~~~~ In order to use PyAnyContainer, you must have OpenOffice.org 1.1.0 or above installed. PyAnyContainer will not work with OpenOffice.org 1.0.*. Homepage ~~~~~~~~ Current versions of PyAnyContainer for OpenOffice.org are always available here: http://www.paolo-mantovani.org/ Contacting author ~~~~~~~~~~~~~~~~~ Please send your suggestions and bug reports to Paolo Mantovani. Any feedback is welcome!