Z
zybzhen
Unregistered / Unconfirmed
GUEST, unregistred user!
for I := Form1.ComponentCount - 1 downto 0 do begin obj := Form1.Components; if Form1.Components IS TEdit then FreeAndNil(obj); end;这样写运行正常freeAndNil(Form1.Components) 就不能编译,不知为啥