type TForm1 = class(TForm) rmrprt1: TRMReport; rmsrdtst1: TRMUserDataset; btn1: TButton; rmsbrcdbjct1: TRMAsBarCodeObject; procedure btn1Click(Sender: TObject); procedure rmrprt1GetValue(const aParName: String; var aParValue: Variant); procedure rmsrdtst1CheckEOF(Sender: TObject; var aEOF: Boolean); procedure rmsrdtst1Next(Sender: TObject); private { Private declarations } public { Public declarations } end;var Form1: TForm1; I:Integer=10;implementation{$R *.dfm}procedure TForm1.btn1Click(Sender: TObject);begin rmrprt1.ShowReport;end;procedure TForm1.rmrprt1GetValue(const aParName: String; var aParValue: Variant);begin if aParName='x' then aParValue:=I;end;procedure TForm1.rmsrdtst1CheckEOF(Sender: TObject; var aEOF: Boolean);begin aEOF:=I=20;end;procedure TForm1.rmsrdtst1Next(Sender: TObject);begin Inc(I);end;