掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
処理を共通化するには? (ID:24831)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
MDIForm内に複数のFormがあって(Form2/Form3/Form4・・・)、これを一つの処理で操作したい場合、 // Form2が選択された if Index = 0 then begin Form2.Label1.Caption := 'Hello World'; // Form3が選択された end else if Index = 1 then begin Form3.Label1.Caption := 'Hello World'; // Form4が選択された end else if Index = 2 then begin Form4.Label1.Caption := 'Hello World'; end; の様に、条件文で処理を分岐させる以外でスマートなやり方はないでしょうか?
←解決時は質問者本人がここをチェックしてください。
更新する
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.