• Introducing Dark Mode! Switch by clicking on the lightbulb icon next to Search or by clicking on Default style at the bottom left of the page!

Disable control system function not working


Active Member

In a button clicked event, Disable Control function is not working.
Event flow is below.

Button Clicked Event:

Disable Control (FC Control)
Variable = 1000000
while variable is greater than zero
variable = variable -1
FC Control 1 = variable
end while
Enable Control (FC Control)

When control goes to while loop, Form Control should be disabled. But it is not disabling the control. If i remove the enable control event, then it is Disabling the control only after executing the while loop.

Inside while loop i have assigned a form control variable, but the variable is assigned only 0 when button clicked event is executed.

Is there anything I am missing? Kindly help.

JDE 9.1
Last edited: