Applies To:
  • CitectSCADA 3.xx, 4.xx, 5.xx

Summary:
When I call the Input() cicode function from a Form button, using mode 1, the form does not close as expected.  Mode 1 should close my form.  What is wrong? 

Solution:
You will need to 'block' the call to Input() to allow the form to close.  In the following example, TestInput2 will allow the form to close.

FUNCTION
FormTest()
    FormNew("Test", 20, 2, 128);
    FormButton(0, 0, " Test1", TestInput, 1);
    FormButton(10, 0, " Test2 ", TestInput2, 1);
    FormRead(0);
END

INT
FUNCTION
TestInput1()
    Input("Test1", "", "");
        RETURN 0;
END

INT
FUNCTION
TestInput2()
    SleepMS(0);
    Input("Test2", "", "");
    RETURN 0;
END

 

Keywords:
 

Attachments