Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: "Cast" a wxString to Numeric?

by Anonymous Monk
on May 03, 2015 at 01:08 UTC ( [id://1125477]=note: print w/replies, xml ) Need Help??


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...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1125477]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-03-29 00:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found