unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation uses SyntaxEx; {$R *.dfm} procedure TForm1.Button1Click(Sender: TObject); begin with var_I_Integer do begin I := 0; while I <= 3 do begin ShowMessage(IntToStr(I)); Inc(I); end; end; with var_S_Integer do begin S := 10; S := S * 2; ShowMessage(IntToStr(S)); end; with var_S_String do begin S := 'テスト'; ShowMessage(S + 'です'); end; end; end.