Home » U++ Library support » LineEdit, EditFields, DocEdit » [BUG] EditDouble, SetData() can prevent U++ program from running...
[BUG] EditDouble, SetData() can prevent U++ program from running... [message #50467] |
Sun, 04 November 2018 20:14 |
ptkacz
Messages: 89 Registered: March 2017
|
Member |
|
|
Working on some code, "0.0" was accidentally passed to a instantiated EditDouble, SetData() method. The U++ application successfully compiled, but would not run. Upon investigation, the issue corrected, and the parameter changed to 0.0, the U++ application would successfully run upon being compiled.
|
|
|
Re: [BUG] EditDouble, SetData() can prevent U++ program from running... [message #50470 is a reply to message #50467] |
Mon, 05 November 2018 19:30 |
|
mirek
Messages: 14039 Registered: November 2005
|
Ultimate Member |
|
|
ptkacz wrote on Sun, 04 November 2018 20:14Working on some code, "0.0" was accidentally passed to a instantiated EditDouble, SetData() method. The U++ application successfully compiled, but would not run. Upon investigation, the issue corrected, and the parameter changed to 0.0, the U++ application would successfully run upon being compiled.
Like this:
EditDouble h;
h.SetData("0.0");
If so, that is not a bug but feature. Value is polymorphhic, it is your responsibility to pass only data allowed.
You can try ... catch(ValueTypeError) if you need to.
Mirek
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 20:58:59 CEST 2024
Total time taken to generate the page: 0.03083 seconds
|