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 » [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: 14267
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 Aug 27 14:37:02 CEST 2025

Total time taken to generate the page: 0.06039 seconds