BASIC Programátorská příručka

From Apache OpenOffice Wiki
Jump to: navigation, search


PDF Icon.gif Download as a PDF or ODT

Tato příručka seznamuje s programováním v jazyce Basic. Předpokladem k pochopení popisované problematiky je určitá předchozí znalost jiného programovacího jazyka. V příručce je uvedeno velké množství příkladů , jenž by vám měly pomoci při tvorbě vašich programů v jazyce Basic.

Tato příručka rozděluje informace o administraci do několika kapitol. První tři kapitoly poskytují základní informace o Basic:

Tyto kapitoly poskytují základní přehled o Basic a měl by se s nima seznámit každý, kdo chce psát programy v Basic. Zbývající kapitoly popisují jednotlivé komponenty API mnohem detailněji a mohou být prostudovány dle potřeby:

About Basic

The Basic programming language has been developed especially for and is firmly integrated in the Office package.

As the name suggests, Basic is a programming language from the Basic family. Anyone who has previously worked with other Basic languages — in particular with Visual Basic or Visual Basic for Applications (VBA) from Microsoft — will quickly become accustomed to Basic. Large sections of the basic constructs of Basic are compatible with Visual Basic.

The Basic programming language can be divided into four components:

  • The language of Basic: Defines the elementary linguistic constructs, for example, for variable declarations, loops, and functions.
  • The runtime library: Provides standard functions which have no direct reference to, for example, functions for editing numbers, strings, date values, and files.
  • The API (Application Programming Interface): Permits access to documents and allows these to be created, saved, modified, and printed.
  • The Dialog Editor: Creates personal dialog windows and provides scope for the adding of control elements and event handlers.
Documentation note.png VBA : Compatibility between Basic and VBA relates to the Basic language as well as the runtime library. The API and the Dialog Editor are not compatible with VBA (standardizing these interfaces would have made many of the concepts provided in impossible).

Intended Users of Basic

The scope of application for Basic begins where the standard functions of end. Routine tasks can therefore be automated in Basic, links can be made to other programs — for example to a database server — and complex activities can be performed at the press of a button by using predefined scripts. Basic offers complete access to all functions, supports all functions, modifies document types, and provides options for creating personal dialog windows.

Use of Basic Basic can be used by any user without any additional programs or aids. Even in the standard installation, Basic has all the components needed to create its own Basic macros, including:

  • The integrated development environment (IDE) which provides an editor for creating and testing macros.
  • The interpreter, which is needed to run Basic macros.
  • The interfaces to various applications, which allow for direct access to Office documents.

More Information

The components of the API that are discussed in this guide were selected based on their practical benefits for the Basic programmer. In general, only parts of the interfaces are discussed. For a more detailed picture, see the API reference.

The Developer's Guide describes the API in more detail than this guide, but is primarily intended for Java and C++ programmers. Anyone who is already familiar with Basic programming can find additional information in the Developer's Guide on Basic and programming.

Programmers who want to work directly with Java or C++ rather than Basic should consult the Developer's Guide instead of this guide. programming with Java or C++ is a considerably more complex process than programming with Basic.

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools