程序库、模块和对话框

下面介绍 LibreOffice Basic 中程序库、模块和对话框的基本用法。

LibreOffice Basic 提供了可以帮助您构建项目的工具。它可以支持不同的「单元」,以方便您对 Basic 项目中的各个子程序和函数进行组合。

程序库

程序库是用于管理模块的工具,可以附加到文档或模板中。当保存文档或模板时,也会自动保存程序库中的所有模块。

一个程序库最多可以含有 16,000 个模块。

模块

A module contains SUBS and FUNCTIONS along with variable declarations. The length of the program that can be saved in a module is limited to 64 kB. If more space is required you can divide a LibreOffice Basic project among several modules, and then save them in a single library.

对话框模块

对话框模块包含对话框定义,其中包括对话框属性、每个对话框元素和指定事件的属性。由于对话框模块只能含有一个对话框,因此通常就用「对话框」来指代对话框模块。

请支持我们!