H
Haha...
Unregistered / Unconfirmed
GUEST, unregistred user!
下列字段:
ismr:boolean
lb :integer
Ej :integer 计算字段 其oncalfields事件
var
temp :integer;
begin
temp:=0;
while not table1.Eof do begin
if table1.fieldbyname('ismr').asboolean then
temp:=table1.fieldbyname('lb').asinteger;
table1.fieldbyname('Ej').asinteger:=temp+table1.fieldbyname('lb').asinteger;
next;
end;
end;
//?mainform运行时不出现
ismr:boolean
lb :integer
Ej :integer 计算字段 其oncalfields事件
var
temp :integer;
begin
temp:=0;
while not table1.Eof do begin
if table1.fieldbyname('ismr').asboolean then
temp:=table1.fieldbyname('lb').asinteger;
table1.fieldbyname('Ej').asinteger:=temp+table1.fieldbyname('lb').asinteger;
next;
end;
end;
//?mainform运行时不出现