Object-Oriented LotusScript Development for Real This Time, Part 1
Introducing the Foconis Object Framework

Michael Schnake, senior software engineer, Foconis AG

Heinz Fink, head of development, Foconis AG


February, 2009


Improve the organization and maintainability of your LotusScript code base and enhance your code’s performance with true object-oriented (OO) programming. The Foconis Object Framework makes OO LotusScript development both easy and powerful. Learn how to use the framework for your own projects by following clear examples based on demo code that you can download along with the framework itself.


Object-oriented (OO) programming is a worthy goal. It can help you write code that is structured, well organized, easy to test, and simple to maintain. Unfortunately, LotusScript is not a true OO language in that it doesn’t have features such as interfaces, static class members, exceptions and exception handlers, and support for Inversion of Control (IoC). You can gain all the benefits of OO programming with LotusScript by adopting the Foconis Object Framework (FOF), which is a production-ready, free, open-source LotusScript library. You can download the FOF and use it as is. The FOF adds the features and concepts that other OO languages already have built in. Plus, it gives you dynamic loading of code libraries, which can noticeably speed up the performance of your applications.
This two-part article helps you get started working with the FOF. In part 1, we introduce you to the framework, explaining its architecture and features, as well as the merits of using it for your own work. We demonstrate how to use its classes and create new classes of your own. By the end of part 2, which goes into detail on creating and using interfaces, error handling, and more, you will have a profound understanding of the features that the FOF core classes add to LotusScript.
All example code, including the framework itself, is available for download using the link at the top of this page. By downloading the demo code and following the examples, you gain a full-featured and completely “wired” database that you can use as a solid groundwork for your projects, including FOF-based handlers for forms, views, and even database events such as queryDocumentDelete.

Would you like to see the full version of this article?

If you are an electronic license holder to THE VIEW, please log in to view this article.

If you would like information about becoming an electronic license holder — and having 24/7 unrestricted access to all articles and content in THE VIEW Online Knowledgebase — click here to see the available subscription options.

Or call 1-781-751-8813 to speak directly with a subscription and licensing specialist about customized access for you and your team.