Progress
Language Tutorial
for Windows


Checked Attribute

The toggle box has an additional attribute that’s useful: CHECKED. The CHECKED attribute holds a logical value. The value is TRUE when the on-screen state of the widget is solid or checked. It’s FALSE when the on-screen state is empty. Although you can use either, using CHECKED instead of SCREEN-VALUE with toggle boxes creates more readable code. The following examples are equivalent, assuming that the solid state of the widget corresponds to YES:

IF Mywidget:SCREEN-VALUE = "YES" THEN . . .
IF Mywidget:CHECKED = YES THEN . . . 


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095