Hi,
I took over a small old project where the predecessor used TextCtrl
fields for pretty much ALL numeric values (inserted them as strings,
read them and converted them to floats .... messy) in the
interface-masks of the program.
In order to make life easier for me and to get to read the calculated
figures more easily, I wanted to change some of the TextCtrls to
masked.NumCtrls
that allow for formatting the figures in regards to decimals, groups/
thousand ..
The problem now is of course that all insertion of the program is
fireing strings causing exceptions ...
Is there a simple (maybe dirty) way to catch what is fired at a
masked.NumCtrl and convert it to the right type prior to insertion?
I am aware that I have to clean up that type-mess rather sooner than
later anyway, but for now I need to evaluate and doublecheck the
figures, i.e. see if the program is calculating corectly - if not I may
start from scratch anyway ...
ThanX,
T