44 wxTextCtrl* textCtrl = wxDynamicCast( GetWindow(), wxTextCtrl );
52 wxString value = textCtrl->GetValue().Strip( wxString::both );
60 const struct lconv* lc = localeconv();
61 wxChar decimal_point = lc->decimal_point[0];
63 wxString buf( value );
64 buf.Replace( wxT(
"." ), wxString( decimal_point, 1 ) );
65 buf.Replace( wxT(
"," ), wxString( decimal_point, 1 ) );
72 if( !buf.ToLong( &intVal ) )
86 if( !buf.ToDouble( &floatVal ) )