EOlsen Posted May 19, 2014 Share Posted May 19, 2014 As I understand it the system variable strAlert is an array with times associated with each error or alert entry. I would like to create a table to display the contents of the strAlert array with associated times. Getting the text to display was easy, just assign strAlert to the column, but I haven't figured out how to display the associated times. Using strAlert.Time doesn't work. Is there a way to display the times associated with strAlert in a table? Link to comment Share on other sites More sharing options...
AzeoTech Posted May 20, 2014 Share Posted May 20, 2014 Use getTime(): ? getTime(strAlert) .Time is really just a shortcut for channels. GetTime() works for anything with time associated. Link to comment Share on other sites More sharing options...
EOlsen Posted May 20, 2014 Author Share Posted May 20, 2014 Yes, thank you. That worked. For anyone else interested in displaying system errors (alerts) in a table with human readable dates and times. Create a table with 2 columns. In the first column enter FormatDateTime('%Y-%m-%d %H:%M:%S', GetTime(strAlert)) as the expression. In the second column enter strAlert as the expression. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.