Hi
I'm assuming you have a text box that has the incoming clock data assigned to it (widget or datalinq). Put this code in the OnSetText event.
This will change the incoming text to seconds. So if it comes in as 04:23, it will leave as 263.
Simon
dim split() as string
dim mins as integer
dim secs as integer
if text.contains(":") then
split=text.split(":")
integer.tryparse(split(0), mins)
integer.tryparse(split(1), secs)
secs+= mins * 60
else
integer.tryparse(text, secs)
end if
text = secs.tostring
#XPression