Forgive me for being an idiot. But, I can't seem to get a timespan value in milliseconds. I'm sure it's something simple, but I can't see it.
I am getting cycletime down to seconds, but the app needs milliseconds.Code:If OneCounter(I) = 0 Then 'determine cycle time cycletime(I) = CDate(TimeString).Subtract(CDate(cyclestarttime(I))) ' lineinfo = "STL|" & LineNumber.ToString & "|" & Now.ToString & "|" & (cycletime(I).TotalMilliseconds / 1000).ToString & "|" & linestate
Cycletime is defined as type timespan
I am a VB6 guy trying to write a VS2008.NET app.




Reply With Quote