You can set the locale used for controlling the formatting numbers, dates and currencies in $[officename] Basic in %PRODUCTNAME - PreferencesTools - Options - Language Settings - Languages. In Basic format codes, the decimal point (.) is always used as placeholder for the decimal separator defined in your locale and will be replaced by the corresponding character.The same applies to the locale settings for date, time and currency formats. The Basic format code will be interpreted and displayed according to your locale setting.The color values of the 16 basic colors are as follows:
Color ValueColor Name0Black128Blue32768Green32896Cyan8388608Red8388736Magenta8421376Yellow8421504White12632256Gray255Light blue65280Light green65535Light cyan16711680Light red16711935Light magenta16776960Light yellow16777215Transparent white
Open Tools - Macros - Organize Dialogs and select %PRODUCTNAME Dialogs container.Open Tools - Macros - %PRODUCTNAME Basic - Edit and select Application Macros container.This library must be loaded before execution. Execute the following statement before running any macro that uses this library:This constant, function or object is enabled with the statement Option VBASupport 1 placed before the executable program code in a module.This statement must be added before the executable program code in a module.
Syntax:
Return value:
Parameters:
Example:
In Basic
In Python
This method is only available for Basic scripts.This method is only available for Python scripts.This method requires the installation of the APSO (Alternative Script Organizer for Python) extension. In turn APSO requires the presence of %PRODUCTNAME Python scripting framework. If APSO or Python are missing, an error occurs.This service is fully supported in both Basic and Python languages. All examples are expressed using the Basic programming language and can be easily converted to Python.String functionsVBA financial functionsVBA Time and Date functionsVBA I/O functionsVBA Mathematical functionsVBA Object functions
Error codes:
1 An exception occurred2 Syntax error3 Return without Gosub4 Incorrect entry; please retry5 Invalid procedure call6 Overflow7 Not enough memory8 Array already dimensioned9 Index out of defined range10 Duplicate definition11 Division by zero12 Variable not defined13 Data type mismatch14 Invalid parameter18 Process interrupted by user20 Resume without error28 Not enough stack memory35 Sub-procedure or function procedure not defined48 Error loading DLL file49 Wrong DLL call convention51 Internal error52 Invalid file name or file number53 File not found54 Incorrect file mode55 File already open57 Device I/O error58 File already exists59 Incorrect record length61 Disk or hard drive full62 Reading exceeds EOF63 Incorrect record number67 Too many files68 Device not available70 Access denied71 Disk not ready73 Not implemented74 Renaming on different drives impossible75 Path/file access error76 Path not found91 Object variable not set93 Invalid string pattern94 Use of zero not permitted250 DDE Error280 Awaiting response to DDE connection281 No DDE channels available282 No application responded to DDE connect initiation283 Too many applications responded to DDE connect initiation284 DDE channel locked285 External application cannot execute DDE operation286 Timeout while waiting for DDE response287 user pressed ESCAPE during DDE operation288 External application busy289 DDE operation without data290 Data are in wrong format291 External application has been terminated292 DDE connection interrupted or modified293 DDE method invoked with no channel open294 Invalid DDE link format295 DDE message has been lost296 Paste link already performed297 Link mode cannot be set due to invalid link topic298 DDE requires the DDEML.DLL file323 Module cannot be loaded; invalid format341 Invalid object index366 Object is not available380 Incorrect property value382 This property is read-only394 This property is write-only420 Invalid object reference423 Property or method not found424 Object required425 Invalid use of an object430 OLE Automation is not supported by this object438 This property or method is not supported by the object440 OLE automation error445 This action is not supported by given object446 Named arguments are not supported by given object447 The current locale setting is not supported by the given object448 Named argument not found449 Argument is not optional450 Invalid number of arguments451 Object is not a list452 Invalid ordinal number453 Specified DLL function not found460 Invalid clipboard format951 Unexpected symbol:952 Expected:953 Symbol expected954 Variable expected955 Label expected956 Value cannot be applied957 Variable already defined958 Sub procedure or function procedure already defined959 Label already defined960 Variable not found961 Array or procedure not found962 Procedure not found963 Label undefined964 Unknown data type965 Exit expected966 Statement block still open: missing967 Parentheses do not match968 Symbol already defined differently969 Parameters do not correspond to procedure970 Invalid character in number971 Array must be dimensioned972 Else/Endif without If973 not allowed within a procedure974 not allowed outside a procedure975 Dimension specifications do not match976 Unknown option:977 Constant redefined978 Program too large979 Strings or arrays not permitted1000 Object does not have this property1001 Object does not have this method1002 Required argument lacking1003 Invalid number of arguments1004 Error executing a method1005 Unable to set property1006 Unable to determine property