Contents
Index 🔎︎

# Информации

You can set the locale used for controlling the formatting numbers, dates and currencies in LibreOffice Basic in Tools - 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:

Бредност на боја | Име на боја
0 | Црна
128 | Сина
32768 | Зелена
32896 | Сино-зелена
8388608 | Црвена
8388736 | Пурпурна
8421376 | Жолта
8421504 | Бела
12632256 | Сива
255 | Светлосина
65280 | Светлозелена
65535 | Светла сино-зелена
16711680 | Светлоцрвена
16711935 | Светла пурпурна
16776960 | Светло жолта
16777215 | Проѕирна бела

Open Tools - Macros - Organize Dialogs and select LibreOffice Dialogs container.

Open Tools - Macros - LibreOffice Basic - Edit and select LibreOffice 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 LibreOffice 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 functions

VBA financial functions

VBA Time and Date functions

VBA I/O functions

VBA Mathematical functions

VBA Object functions

## Error codes:

18 User interrupt occurred

2 Unspecified syntax error

3 Return without Gosub

14 Invalid parameter

5 Invalid procedure call

6 Overflow

7 Out of memory

8 Array already dimensioned

9 Subscript out of range

10 Duplicate definition

11 Division by zero

12 Variable undefined

13 Type mismatch

14 Invalid parameter

18 User interrupt occurred

20 Resume without error

28 Out of stack space

35 Sub or Function not defined

48 Error in loading DLL

49 Bad DLL calling convention

51 Internal error

52 Bad file name or number

53 File not found

54 Bad file mode

55 File already open

57 Device I/O error

58 File already exists

59 Bad record length

61 Disk full

67 Too many files

63 Bad record number

67 Too many files

68 Device not available

70 Permission denied

71 Disk not ready

73 Feature not implemented

74 No rename with different drive

75 Path/file access error

76 Path not found

91 Object variable not set

93 Invalid pattern string

4 Redo from start

57 Device I/O error

20 Resume without error

68 Device not available

10 Duplicate definition

425 Invalid use of object

28 Out of stack space

451 Object not a collection

28 Out of stack space

8 Array already dimensioned

51 Internal error

3 Return without Gosub

10 Duplicate definition

93 Invalid pattern string

18 User interrupt occurred

423 Property or method not found

460 Invalid clipboard format

55 File already open

76 Path not found

71 Disk not ready

424 Object required

323 Can't load module

341 Invalid object index

68 Device not available

380 Bad property value

382 Property is read only

394 Property is write only

420 Invalid object reference

423 Property or method not found

424 Object required

425 Invalid use of object

440 OLE automation error

423 Property or method not found

440 OLE automation error

445 Object doesn't support this action

448 Named argument not found

445 Object doesn't support this action

448 Named argument not found

449 Argument not optional

450 Wrong number of arguments

451 Object not a collection

452 Invalid ordinal

453 Specified DLL function not found

460 Invalid clipboard format

51 Internal error

424 Object required

53 File not found

12 Variable undefined

55 File already open

53 File not found

55 File already open

35 Sub or Function not defined

55 File already open

53 File not found

76 Path not found

76 Path not found

12 Variable undefined

6 Overflow

53 File not found

62 Input past end of file

76 Path not found

8 Array already dimensioned

76 Path not found

93 Invalid pattern string

8 Array already dimensioned

20 Resume without error

973 not allowed within a procedure

974 not allowed outside a procedure

53 File not found

76 Path not found

67 Too many files

76 Path not found

71 Disk not ready

91 Object variable not set

438 Object doesn't support method

10 Duplicate definition

450 Wrong number of arguments

48 Error in loading DLL

51 Internal error

12 Variable undefined