in reply to "Cast" a wxString to Numeric?

Sounds like you want to use a Wx::SpinCtrl/Wx::SpinCtrlDouble and not a Wx::TextCtrl

wxperl_demo --show wxSpinCtrl

Perl doesn't have wxString :)

Replies are listed 'Best First'.
Re^2: "Cast" a wxString to Numeric?
by jmlynesjr (Deacon) on May 03, 2015 at 19:46 UTC

    Thanks, I'll give it a look. The response from Corion showed me that the warning message was telling me something different than I had assumed. Yes, wxString is from the wxWidgets docs.

    James

    There's never enough time to do it right, but always enough time to do it over...

      To close the loop, wxSpinCtrl was the better solution as it eliminates the possibility of a divide by zero caused by an empty/completely erased field.

      James

      There's never enough time to do it right, but always enough time to do it over...