有时候我们在遍历窗体控件时,经常看到两种写法for i := 0 to AControl.ControlCount - 1 do
self.Controls[i]
for i := 0 to self.ComponentCount - 1 do
self.Components[i] 那么请问一下 ControlCount, 与ComponentCount 有什么区别....
什么情况下用哪一种写法
self.Controls[i]
for i := 0 to self.ComponentCount - 1 do
self.Components[i] 那么请问一下 ControlCount, 与ComponentCount 有什么区别....
什么情况下用哪一种写法
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货