procedure TForm1.Button1Click(Sender: TObject); begin Button1.Caption := IntToStr(BinToInt('10001010')); end;