I need to set a uniform proctime on a SingleProc by code. The SingleProc have previously had a constant proctime.
The uniform proctime is in a table (as a string) which I want to read from. At this point my code looks like this:
Secs := root.Methods.GeneralOtherData["String", "CMM_Efterarbete_Proctime"]
?.setSubAttribute("ProcTime", "Type", "Uniform")
?.ProcTime := str_to_time(Secs)
The parameter Secs returns the string "5:00, 4:00:00". This returns the error "Invalid time specification". Does anyone have any tips on how to solve this?
Solved! Go to Solution.