for y:=2 to qxfp.ComponentCount do
if dm.ry1.FieldValues['qx+y-)']='1' then
begin
if qxfp.components[y-1] is Tcheckbox then
((qxfp.components[y-1]) as Tcheckbox).Checked:=true;
end;
end;
循环里的dm.ry1.FieldValues['qx+y-1]='1'这么写,是不对的,请问我该怎么办,还有在这个qxfp里除了checkbox,还有edit,请问我这么写循环队吗,如果不对我因该怎么改过来,谢谢
if dm.ry1.FieldValues['qx+y-)']='1' then
begin
if qxfp.components[y-1] is Tcheckbox then
((qxfp.components[y-1]) as Tcheckbox).Checked:=true;
end;
end;
循环里的dm.ry1.FieldValues['qx+y-1]='1'这么写,是不对的,请问我该怎么办,还有在这个qxfp里除了checkbox,还有edit,请问我这么写循环队吗,如果不对我因该怎么改过来,谢谢
....
begin
if dm.ry1.FieldValues['qx+y']='1' then
begin
if qxfp.components[y-1] is Tcheckbox then
((qxfp.components[y-1]) as Tcheckbox).Checked:=true;
if qxfp.components[y-1] is Tedit then
......
end;
end
知道第几个字段Fields[i]
可是这个'qx+y'程序还是找不到阿,又没有别的办法