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 » Is there a way to make EditDouble return 0 if it has no value?
Re: Is there a way to make EditDouble return 0 if it has no value? [message #27604 is a reply to message #27603] Sun, 25 July 2010 16:44 Go to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

MatthiasG wrote on Sun, 25 July 2010 15:35

Hi Honza,

thanks for your answer. i am using your converter now Smile

though it would be cool if such an option could be integrated in the original editdouble. had some nasty errors in my application when i forgot to check for a null value.

greetings,
matthias


I know from my own experience that it can be sometimes tedious to debug all the additions and multiplying by null, but still I don't think it is worthed the trouble to add the option to regular EditDouble.

As I said above, I usually force the user to input something Smile Actually in most cases I also supply the default value (e.g 0) to the field in the constructor, so it doesn't bother users at all.

Honza
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Scan an timestamp
Next Topic: [FEATURE] Horizontal scroll on Shift+mouse wheel
Goto Forum:
  


Current Time: Sun Apr 28 22:17:48 CEST 2024

Total time taken to generate the page: 0.06077 seconds