mwheen Posted May 31, 2011 Share Posted May 31, 2011 How is it possible to ensure that the contents of an edit control box are not lost when rebooting DAQFactory? Thanks Link to comment Share on other sites More sharing options...
AzeoTech Posted May 31, 2011 Share Posted May 31, 2011 What are you using it for? The easiest way is to make sure the variable that the edit box is editing persists its content (using registry variables or one of many other ways), and then in a start up sequence, put: Page.updateEdits() Link to comment Share on other sites More sharing options...
mwheen Posted June 2, 2011 Author Share Posted June 2, 2011 Thanks, this worked well. One other question, how is it possible to restore Date and Time Edit values on reset? I tried prescribing them also as a registry variable and used Page.update however the values defaulted to the reconnect date and time. I am trying to turn off a relay at one time and turn it off at another and in case of reset need to ensure the original inputs are restored. I am using a UE9. Thanks again Mark Link to comment Share on other sites More sharing options...
AzeoTech Posted June 2, 2011 Share Posted June 2, 2011 You can always set the contents directly. For example, to set the contents of a date/time edit component named "dtedit" to the current system time: component.dtedit.Contents = systime() Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.