在 Memo 连接数据 : [Q_cjtzd."q1"]
编码区:
begin
if [Q_cjtzd."q1"]='0' then
begin
[Q_cjtzd."q1"]='';
// FindObject('Memo').Memo.Text='';
end;
end我希望当[Q_cjtzd."q1"]是0时 使得Memo的值为空??
怎么写呢
编码区:
begin
if [Q_cjtzd."q1"]='0' then
begin
[Q_cjtzd."q1"]='';
// FindObject('Memo').Memo.Text='';
end;
end我希望当[Q_cjtzd."q1"]是0时 使得Memo的值为空??
怎么写呢
var
myMemo: TfrxMemoView;
begin
myMemo := TfrxMemoView(frxReport1.FindObject('Memo1'));
if myMemo <> nil then
if trim(myMemo.Memo.Text) = '0' then
myMemo.Memo.Text := ''; frxreport1.ShowReport;end;
假设 memo1,memo2从数据库获取值为12和5,
5/12<50% 则memo3 为空,否则memo3取值为memo2的值