Page 1 of 1

Available Options in Basic

Posted: Thu Sep 27, 2012 6:39 pm
by TAB
OpenOffice.org Basic provides a switch called:
Option Explicit
Where is the list of available Options? I searched for 'switch' and 'options' without success --of course; 'option' has many meanings!
There should be an 'Options' item under 'The Language of OpenOffice.org Basic', together with Strings, Numbers,...

Re: available Options in Basic

Posted: Thu Sep 27, 2012 7:56 pm
by hanya
http://opengrok.adfinis-sygroup.org/sou ... er.cxx#751

Code: Select all

Option Explicit: To make variables must be defined before to use.
Option Base 0/1: Change array starting index to 1.
Option Private Module: (VBA) Hide procedures from UI (not working).
Option Compare Binary/Text: (VBA) Change comparison mode of string. (not working?, see Andrew's OpenOffice.org Macros Explained.
Option Compatible: VBA compatibility on.
Option ClassModule: (VBA) Make module as class module.
Option VBASupport 0/1: Switch VBA suppport mode, Compatible is also on.
VBA mode is not 100% compatible and not finished to be implemented.