Windows with Delphi Windows API (94) Windows Filesystem (41) Windows Forms (69) Windows Graphics (38)
Exchange Links About this site Links to us 
|
Clear all edit controls on your form
This article has not been rated yet. After reading, feel free to leave comments and rate it.
The shortest way to do this:
 | |  | |
procedure TForm1.ClearAll;
var
i : integer;
begin
for i := 0 to ComponentCount-1 do
if (Components[i] is TEdit) then
(Components[i] as TEdit).Text := '';
end; | |  | |  |
Comments:
|