Module
Contents
Index 🔎︎

# Access2Base

## Apa itu Access2Base?

Access2Base adalah suatu pustaka makro LibreOffice Basic untuk para pengembang aplikasi (bisnis atau pribadi) serta para pengguna tingkat lanjut. Ini adalah salah satu dari pustaka yang disimpan dalam "Makro dan dialog LibreOffice".

Fungsionalitas yang disediakan oleh makro yang terimplementasi semuanya terinspirasi secara langsung dari Microsoft Access. Makro dapat dipanggil terutama dari aplikasi LibreOffice Base, namun juga dari dokumen LibreOfficeapapun (Writer, Calc, ...) dimana akses ke data yang tersimpan di basis data masuk akal.

API yang disediakan oleh Access2Base dimaksudkan agar lebih padat, intuitif, dan mudah dipelajari daripada API UNO standar (API = Application Programming Interface).

The library is documented online on http://www.access2base.com.

## Makro yang diimplementasi termasuk:

1. a simplified and extensible API for forms, dialogs and controls manipulations similar with the Microsoft Access object model,

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. dukungan notasi singkatan seperti 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