Topic: An operation thet doesn't float very well
Hello everyone
At the request of a model railway club, I created an application with MVD which carries out a bunch of various conversions allowing the creation of a network as accurately as possible.
I am submitting to you an anomaly that is bothering me.
It is located on tab 3 of the PageControl
(called 'Calculation of a slope')
On each of the tabs all the calculations are done correctly and conform to reality.
On each tab, I placed an image ('Reset') which empties all the fields to make a new entry.
On tabs 1 and 2, the event behind the image does what is expected of it: the fields are emptied without error.
The anomaly is on the third tab.
When I want to empty the fields, an exception arises which never fails to question me with its message:
'Invalid floating point operation'.
What is the relationship between a calculation operation and a simple
resetting a TEdit (in this case TEdit10, I set the field empty), something which poses no problem on the other tabs?
The information found on the Internet leaves me perplexed as it goes in all directions.
I'll turn to you if you have an idea.
(Ultimately I say to myself: is it still the multiplication by 100 which would be at the origin? The relationship with putting the content of a TEdit clear?)
Thanks in advance.
J.B.