Hi Jarod
Try this script. Set it in the text object to which the DataLink is connected. "Delay" is a text object for entering the time difference, "outtime" is a text object with final results.
Dim delaytxt, outtxt As xpTextObject
scene.GetObjectByName("delay", delaytxt)
scene.GetObjectByName("outtime", outtxt)
Dim intime As System.DateTime
Date.TryParse(Text, intime)
Dim delaytime As System.TimeSpan
System.TimeSpan.TryParse(delaytxt.Text, delaytime)
outtxt.Text = (intime + delaytime).ToString("mm:ss")
------------------------------
ROMAN YAROSHENKO
chief specialist
RBC-TV
Moscow Russian Federation
------------------------------
Original Message:
Sent: 07-18-2022 15:19
From: Jarod Valentin
Subject: Subtracting time in visual logic or script
I am primarily a designer and only occasionally dig into visual logic or scripting. I need to subtract a time (mm:ss) we receive from a Datalinq from a manually inputted time and have a field that has the difference in the same mm:ss format. If that makes sense any help would be greatly appreciated.
------------------------------
Jarod Valentin
------------------------------