40 wxTextCtrl* textCtrl = wxDynamicCast( GetWindow(), wxTextCtrl );
48 wxString value = textCtrl->GetValue().Strip( wxString::both );
56 const struct lconv* lc = localeconv();
57 wxChar decimal_point = lc->decimal_point[0];
59 wxString buf( value );
60 buf.Replace( wxT(
"." ), wxString( decimal_point, 1 ) );
61 buf.Replace( wxT(
"," ), wxString( decimal_point, 1 ) );
68 if( !buf.ToLong( &intVal ) )
82 if( !buf.ToDouble( &floatVal ) )