Error: 1017 - Compiling a component without entities is not allowed

Error: 1017 - Compiling a component without entities is not allowed

我在 uniface 9.7 中遇到以下编译器错误:

error: 1017 - Compiling a component without entities is not allowed.

我应该使用哪个实体?重要吗?

当您想在 Uniface 中实现不需要与任何实体交互的功能时,您有两种选择:

  1. 在全局过程中而不是在组件中实现代码。
  2. 在组件中实现您的代码并在其上绘制一个“虚拟”实体。虚拟实体是模型中不存在的实体(因此也不存在于数据库中)