//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "SysUtilsStrToInt.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
	: TForm(Owner)
{
}
//---------------------------------------------------------------------------
// BeginExample: SysUtilsStrToInt
// Routine: SysUtils.StrToInt

// BeginCode
/*
This example uses two edit boxes and a button on a form. When the user clicks
the button, the code converts the values in the edit boxes to numbers, adds them,
and displays a message indicating the sum:
*/
void __fastcall TForm1::Button1Click(TObject *Sender)
{
  int i1, i2;
  i1 = StrToInt(Edit1->Text);
  i2 = StrToInt(Edit2->Text);
  ShowMessage(IntToStr(i1 + i2));
}
// EndCode
// EndExample: SysUtilsStrToInt
//---------------------------------------------------------------------------
