Command group | Flag affected | Reversible | Execute on client | Platform(s) |
---|---|---|---|---|
Fields | YES | NO | NO | All |
Test for field enabled {field-name}
This command tests if the specified field on the top window instance is enabled, that is, if it is not currently disabled with Disable fields or by setting $enabled to kFalse. The flag is always cleared if there are no window instances open or if the field does not exist.
Test for field enabled {myField}
If flag true
Disable fields {myField}
Else
Enable fields {myField}
End If
# or do it like this
If $cwind.$objs.myField.$enabled
Do $cwind.$objs.myField.$enabled.$assign(kFalse)
Else
Do $cwind.$objs.myField.$enabled.$assign(kTrue)
End If