| Command group | Flag affected | Reversible | Execute on client | Platform(s) |
| Fields | YES | NO | NO | All |
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 enabledmyField
If flag trueDisable fieldsmyField
ElseEnable fieldsmyField
End If
# or do it like this
If$cwind.$objs.myField.$enabledDo$cwind.$objs.myField.$enabled.$assign()
ElseDo$cwind.$objs.myField.$enabled.$assign()
End If