LWH006所言极是!用visable属性想想也应该是对的,我写了下面的代码,可就是通不过:
procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
begin
// l_len_mcguig:=length(trim(frxDBDataset1."Áã¼þÃû³Æ"+trim(frxDBDataset1."¹æ¸ñÒ»");
if length(trim([frxDBDataset1."Áã¼þÃû³Æ"]))+length(trim([frxDBDataset1."¹æ¸ñÒ»"]))>20 then
begin
Memo16.visible:=false;
Memo19.visible:=true;
Memo23.visible:=true;
end else
begin
Memo16.visible:=true;
Memo19.visible:=false;
Memo23.visible:=false;
end;
end;