掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
複数のチェックボックスのチェック数を数える (ID:148464)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
動作確認していませんが、以下のような感じでしょうか? var cp: TComponent; i, chk_cnt: Integer; chk_cnt := 0; for i := 0 to ComponentCount - 1 do begin cp := Components[i]; if cp is TCheckBox then if TCheckBox(cp).Checked then inc(chk_cnt); end;
←解決時は質問者本人がここをチェックしてください。
更新する
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.