dle Posted November 7, 2012 Posted November 7, 2012 I'm writing a small script in a channel (e.g MyChannel). The value of this channel is updated when user enter a value in to an edit box component. The scrip in this channel event as below: If (MyChannel > 10) System.messagebox("Input value must be less than 10") else do something endif If I input value greater than 10 the message box pop up and Daqfactory screen flicking (shaking) for a few seconds and I have to click "ok" on the message box 10-20 times in order to close it. This problem will not occur if the scrip is used in a sequence or in a quick sequence of a component action. Do you have any suggestion Thanks,
AzeoTech Posted November 7, 2012 Posted November 7, 2012 Most likely MyChannel is getting updated a bunch of times, and each time its triggering the event. I don't think a channel event is really a good place for input validation. You should do it when you close the popup.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.