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

Question: When I use KeySetAn() or KeySetCursor() in a Page Entry function, the cursor sets itself to the top-left hand corner of my Citect window and no cursor appears around the AN, but the AN is actually selected. How come? 

Page Entry functions are called as the page is entered. Therefore, it is possible for the Page Entry function to be called before the page has been initialised fully. Changing this behaviour would change the behaviour of the Page Entry function, so the easiest work around is to call Sleep(1) or SleepMS(500) before your function to delay the Page Entry function slightly.