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 |
|
MatthiasG wrote on Sun, 25 July 2010 15:35 | Hi Honza,
thanks for your answer. i am using your converter now
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 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
|
|
|
Goto Forum:
Current Time: Sun Apr 28 22:17:48 CEST 2024
Total time taken to generate the page: 0.06077 seconds
|