求一简单代码
var
str:array[0..4] of string;
begin
checkbox1.Caption := str[1];
checkbox2.Caption := str[2];
checkbox3.Caption := str[3];
checkbox4.Caption := str[4];
end;
如上,我想实现一个for循环,能够简单的实现上面的功能。不知道这么描述清楚不?我现在就是不知道改怎么能够checkbox[i],如果能够这样就能写for循环了,》?
谢谢。。