adding and subtracting time

James Flanagan James at Flantec.com
Sun Jan 10 09:52:18 PST 2016


I am trying to identify the most elegant way to add and subtract time with user input in filepro.  The first example, where dummy ti is a 2 digit .0 variable, does not work properly.  The second example, by changing ti to an 8 digit hms variable does.  however, i do not want to have end users accidentally or otherwise screwing up the 00:00:00 sequence.  therefore, how can i prompt a user for a 2 digit number and ultimately get filepro to remove the respective number of minutes from my tm dummy variable.  Thank you very much in advance.


::ti(2,.0):
::input popup ti "Please enter how many minutes ago to start the downtime clock^A":
::tm=@tm-"00^A"{ti{"^A00":


::ti(8,hms):
::input popup ti "Please enter how many minutes ago to start the downtime clock^A" default "00^A00^A00":
::tm=@tm-ti:


James Flanagan
Flantec.com <http://flantec.com/>

email:	James at Flantec.com <mailto:James at Flantec.com>
mobile:	760-458-8498
home: 	219-221-6219
text:		7604588498 at txt.att.net <mailto:7604588498 at txt.att.net>

aim:		Flantec
oovoo:	Flantec
Skype:	Flantec
ichat:	Flantec at mac.com <mailto:Flantec at mac.com>

home:	1901 Cidermill Road
		Michigan City, IN 46360

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20160110/0a938ffe/attachment.html>


More information about the Filepro-list mailing list