1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
| procedure TfrmMain.RvDataSetConnection1ValidateRow(
Connection: TRvCustomConnection; var ValidRow: Boolean);
var
Mypage : TRavePage;
MyRect1,MyRect2,MyRect3,MyRect4,MyRect5,MyRect6,MyRect7,MyRect8,MyRect9,MyRect10 : TRaveRectangle;
MyDBText1,MyDBText2,MyDBText3,MyDBText4,MyDBText5,MyDBText6,MyDBText7,MyDBText8,MyDBText9,MyDBText10 : TRaveDataText;
begin
MyPage:=TRavePage(rv1.ProjMan.FindRaveComponent('Joueurs.MainPage',nil));
MyDBText1:=TRaveDataText(rv1.projman.findravecomponent('DataText1',Mypage));
MyRect1:=TRaveRectangle(rv1.projman.findravecomponent('Rectangle1',Mypage));
MyRect1.Visible:=ExistOnTable(MyDBText1.Text);
MyDBText2:=TRaveDataText(rv1.projman.findravecomponent('DataText2',Mypage));
MyRect2:=TRaveRectangle(rv1.projman.findravecomponent('Rectangle2',Mypage));
MyRect2.Visible:=ExistOnTable(MyDBText2.Text);
MyDBText3:=TRaveDataText(rv1.projman.findravecomponent('DataText3',Mypage));
MyRect3:=TRaveRectangle(rv1.projman.findravecomponent('Rectangle3',Mypage));
MyRect3.Visible:=ExistOnTable(MyDBText3.Text);
MyDBText4:=TRaveDataText(rv1.projman.findravecomponent('DataText4',Mypage));
MyRect4:=TRaveRectangle(rv1.projman.findravecomponent('Rectangle4',Mypage));
MyRect4.Visible:=ExistOnTable(MyDBText4.Text);
MyDBText5:=TRaveDataText(rv1.projman.findravecomponent('DataText5',Mypage));
MyRect5:=TRaveRectangle(rv1.projman.findravecomponent('Rectangle5',Mypage));
MyRect5.Visible:=ExistOnTable(MyDBText5.Text);
MyDBText6:=TRaveDataText(rv1.projman.findravecomponent('DataText6',Mypage));
MyRect6:=TRaveRectangle(rv1.projman.findravecomponent('Rectangle6',Mypage));
MyRect6.Visible:=ExistOnTable(MyDBText6.Text);
MyDBText7:=TRaveDataText(rv1.projman.findravecomponent('DataText7',Mypage));
MyRect7:=TRaveRectangle(rv1.projman.findravecomponent('Rectangle7',Mypage));
MyRect7.Visible:=ExistOnTable(MyDBText7.Text);
MyDBText8:=TRaveDataText(rv1.projman.findravecomponent('DataText8',Mypage));
MyRect8:=TRaveRectangle(rv1.projman.findravecomponent('Rectangle8',Mypage));
MyRect8.Visible:=ExistOnTable(MyDBText8.Text);
MyDBText9:=TRaveDataText(rv1.projman.findravecomponent('DataText9',Mypage));
MyRect9:=TRaveRectangle(rv1.projman.findravecomponent('Rectangle9',Mypage));
MyRect9.Visible:=ExistOnTable(MyDBText9.Text);
MyDBText10:=TRaveDataText(rv1.projman.findravecomponent('DataText10',Mypage));
MyRect10:=TRaveRectangle(rv1.projman.findravecomponent('Rectangle10',Mypage));
MyRect10.Visible:=ExistOnTable(MyDBText10.Text);
end; |
Partager