FREE multiple similar controls loop errors

xiaoxiao2021-03-06  74

The count error of the loop is because the process of free changes in ComponentCount, so it can only reverse Free.

For i: = form1.componentcount-1 Downto 0 Do Begin if Form1.Components [I] is Tedit the form1.components [i] .free;

转载请注明原文地址:https://www.9cbs.com/read-121039.html

New Post(0)