|
||||||
How to Create OpenOffice.org Database MacrosAutomating Base ODB Files by Using OpeOffice BasicRelease 3.1 of OpenOffice.org gives programmers a new facility - the ability to save macros as part of a database file.
Unfortunately the release of OpenOffice.org 3.1 means that any database developers now have much more work to do and will be having even less of a social life. That's because they're going to be busy installing this new version on both their own and their clients' computers. Why is that? Because OpenOffice.org version 3.1 has added macros to database documents. What is a Macro?Many users of OpenOffice.org Writer and Calc will already be well versed in the creation and use of macros. A macro is, quite simply, a section of code stored and run from the application. This code is written in OpenOffice.org Basic which is very similar to (but not the same as) languages such as Visual Basic. And, up until version 3.1, that has not been available in OpenOffice.org Base. One of the key differences between OpenOffice.org Basic and other forms of Basic is its reliance on the OpenOffice.org UNOs (Universal Network Objects). UNOs:
The end result is, of course, that a very powerful macro can be build with the minimum of knowledge about the actual workings of an OpenOffice.org database. Creating a New OpenOffice.org Database MacroThe process of creating a new OpenOffice.org database macro is quite simple in version 3.1:
At the end of this short process the OpenOffice.org Basic IDE (Integrated Design Environment) will be displayed, complete with a blank macro (as shown in figure 2). Developing a Complete Database ApplicationThe ability of saving macros as part of an OpenOffice.org database means that the developer can create a complete database application. The macros can be used to:
Now OpenOffice.org Base is, at last, a viable alternative to Microsoft Access. Rather than justusing Base as a prototyping tool, the database developer can consider building a professional, self contained, database application.
The copyright of the article How to Create OpenOffice.org Database Macros in Database Programming is owned by Mark Alexander Bain. Permission to republish How to Create OpenOffice.org Database Macros in print or online must be granted by the author in writing.
|
||||||
|
|
||||||
|
|
||||||