bcbtips1
多くのコンポーネントをループを使って処理する
FindComponent()
ボタンが20個ある場合
TButton *btn;
for (int i=1; i<21; i++)
{
btn = (TButton*)FindComponent("Button" + IntToStr(i));
btn->Caption = String("Button") + IntToStr(i);
}
FindComponent()
ボタンが20個ある場合
TButton *btn;
for (int i=1; i<21; i++)
{
btn = (TButton*)FindComponent("Button" + IntToStr(i));
btn->Caption = String("Button") + IntToStr(i);
}
2008年10月12日(日) 18:23:49 Modified by eruvasu