title: How to make C++ run only numbers in a Stack<String^>
body: <p>I've got this declaration for using Text, however I need to make it so it works only with numbers with(,)decimals and now I'm stuck...</p>
  
  <pre><code>public ref class Form1 : public System::Windows::Forms::Form
      {
      private: Stack&lt;String^&gt;^ talen;
      public:
      Form1(void)
      {
          InitializeComponent();
          //
          //TODO: Add the constructor code here
          //
          talen = gcnew Stack&lt;String^&gt;();
          }
  </code></pre>
  
  <p>'</p>
  
  <pre><code>private: System::Void btnPush_Click(System::Object^  sender, System::EventArgs^  e) {
      String^ tal = tbxTal-&gt;Text;
      talen-&gt;Push(tal);
      tbxIn-&gt;AppendText(tal + "\n");
      tbxTal-&gt;Text = "";
  }
  
  private: System::Void Pop_Click(System::Object^  sender, System::EventArgs^  e) {
      while (talen-&gt;Count!=0)
      {
          String^ tal = talen-&gt;Pop();
          tbxUt-&gt;AppendText(tal + "\n");
      }
  }
  </code></pre>