Conteníu
Índiz 🔎︎

# Access2Base

## ¿Qué ye Access2Base?

Access2Base ye una biblioteca de macros en Basic de LibreOffice pa desendolcadores d'aplicaciones (pa empreses o personales) y usuarios avanzaos. Ye una de les biblioteques almacenaes en «Macros y diálogos de LibreOffice».

The functionalities provided by the implemented macros are all directly inspired by Microsoft Access. The macros are callable mainly from a LibreOffice Base application, but also from any LibreOffice document (Writer, Calc, ...) where access to data stored in a database makes sense.

La API qu'ufre Access2Base tien l'envís ser más concisa, intuitiva y fácil d'aprender que la API UNO estándar (API = Interfaz de programación d'aplicaciones, poles sigles n'inglés).

La biblioteca ta documentada na rede en http://www.access2base.com

## Les macros desendolcaes incluyen:

1. una API simplificada y estensíble pa manipular formularios, diálogos ¡y controies asemeyada al modelu d'oxetos de Microsoft Access

2. an API for database access with the table, query, recordset and field objects,

3. a number of actions with a syntax identical to their corresponding Microsoft Access macros/actions,

4. the DLookup, DSum, ... database functions,

5. el sofitu p'atayos d'escritura como Forms!myForm!myControl

in addition

6. a consistent errors and exceptions handler,

7. facilities for programming form, dialog and control events and

8. the support of both embedded forms and standalone (Writer) forms.

## Compare Access2Base with Microsoft Access VBA

       REM Open a form ...
                 OpenForm("myForm")
       REM Move a form to new left-top coordinates ...
                 Dim ofForm As Object  ' In VBA =>  Dim ofForm As Form
                 Set ofForm = Forms("myForm")
                 ofForm.Move(100, 200)
       REM Get the value of a control ...
                 Dim ocControl As Object
                 ocControl = ofForm.Controls("myControl")
                 MsgBox ocControl.Value
       REM Hide a control ...
                 ocControl.Visible = False
       REM ... or alternatively ...
                 setValue("Forms!myForm!myControl.Visible", False)  '  Shortcut notation
                 ' In VBA =>  Forms!myForm!myControl.Visible = False