Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » LineEdit, EditFields, DocEdit » Enter time as duration
Re: Enter time as duration [message #14892 is a reply to message #11281] Wed, 19 March 2008 00:16 Go to previous messageGo to previous message
jlfranks is currently offline  jlfranks
Messages: 57
Registered: May 2007
Location: Houston, TX, USA
Member
Well, I think Duration is a general case and should be included
in Upp.

I just ran into this problem, i.e., where Time is really Time&Date. I need a Duration type.

Imagine a case whereby process control batch has many different
timed durations and we use Upp to present this to the operator.

Duration should be a type included in Upp. Also, it is not just
a new typedef as was mentioned.

Value type must comprehend the new type Dur or Duration (depending on how it is named). There are guards that check for null and empty, and it switches on the test depending on the
Type and applies the right operation for that Type.

Not as simple as just a new typedef as stated earlier:
typedef EditMinMax<Time, ConvertDuration> EditDur;

More is involved.

--jlf
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: DocEdit call RemoveLines make Assertion failed.
Next Topic: editing selection in doc edit
Goto Forum:
  


Current Time: Tue Apr 16 17:15:02 CEST 2024

Total time taken to generate the page: 0.01132 seconds