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

Home » U++ Library support » LineEdit, EditFields, DocEdit » [BUG] EditDouble, SetData() can prevent U++ program from running...
Re: [BUG] EditDouble, SetData() can prevent U++ program from running... [message #50470 is a reply to message #50467] Mon, 05 November 2018 19:30 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
ptkacz wrote on Sun, 04 November 2018 20:14
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.


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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: LineEdit how to set selection from code
Next Topic: [BUG] DropList selection goes blank...
Goto Forum:
  


Current Time: Wed Apr 29 07:16:37 GMT+2 2026

Total time taken to generate the page: 0.00635 seconds