U++ framework
Do not panic. Ask here before giving up.

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: 1796
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: Mon Jul 27 02:44:12 GMT+2 2026

Total time taken to generate the page: 0.00663 seconds