EGL 中的枚举

在某些情况下,EGL 中的属性或字段的值被限制为特定枚举的值,枚举是一个预定义值类别。例如,属性 color 接受枚举 ColorKind 的值,并且该枚举的有效值包括 whitered

可使用枚举名称限定枚举值,如可将上述值声明为 ColorKind.whiteColorKind.red。但是,仅当代码对与枚举值同名的变量或常量具有访问权时,才需要限定该枚举值。例如,如果作用域中存在名为 red 的变量,则符号 red 指的是该变量而不是枚举值。

以下枚举列表包括若干枚举值;但这里并没有对这些值进行说明,而是在枚举在其中有意义的属性或字段的上下文中进行了说明:

AlignKind
  • center
  • left
  • none
  • right
Boolean
  • yes
  • no
CallingConventionKind
  • I4GL
  • Library
CaseFormatKind
  • defaultCase
  • lower
  • upper
ColorKind
  • black(仅对控制台字段有效)
  • blue
  • cyan
  • defaultColor
  • green
  • magenta
  • red
  • yellow
  • white
DataSource
  • databaseConnection
  • reportData
  • sqlStatement
DeviceTypeKind
  • doubleByte
  • singleByte
DisplayUseKind
  • button
  • hyperlink
  • input
  • output
  • secret
  • table
EventKind
  • AFTER_DELETE
  • AFTER_FIELD
  • AFTER_OPENUI
  • AFTER_INSERT
  • AFTER_ROW
  • BEFORE_DELETE
  • BEFORE_FIELD
  • BEFORE_OPENUI
  • BEFORE_INSERT
  • BEFORE_ROW
  • ON_KEY
  • MENU_ACTION
ExportFormat
  • html
  • pdf
  • text
  • xml
HighlightKind
  • blink
  • defaultHighlight
  • noHighlight
  • reverse
  • underline
IndexOrientationKind
  • across
  • down
IntensityKind
  • bold
  • defaultHighlight
  • dim
  • invisible
  • normalIntensity
LineWrapKind
  • character
  • compress(仅对控制台字段有效)
  • word
OutlineKind
  • bottom
  • left
  • right
  • top
注: sysLib.box 是等同于 [left,right,top,bottom] 的常量。sysLib.noOutline 是一个常量,表示没有轮廓。
PfKeyKind
  • pfn, where (1 <= n <=24)
ProtectKind
  • skip
  • no
  • yes
SelectTypeKind
  • index
  • value
SignKind
  • leading
  • none
  • parens
  • trailing

相关概念
EGL 属性概述引用 EGL 中的变量

使用条款 | 反馈
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.