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

#include <vcl.h>
#pragma hdrstop

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

// BeginCode
/*
The following example uses two edit controls, a button, and
a label on a form. When the button is clicked, the integers
in the edit controls are multiplied together and the result
is displayed in the label.
*/
void __fastcall TForm1::Button1Click(TObject *Sender)
{
  try
  {
    Label1->Caption = IntToStr(StrToInt(Edit1->Text) * StrToInt(Edit2->Text));
  }
  catch(...)
  {
    ShowMessage("You must specify integer values. Please try again.");
  }
}
// EndCode
// EndExample: IntToStr
//---------------------------------------------------------------------------
