掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
Labelにi番目の文字を出すには? (ID:11503)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
//CounterはForm1のCreate時に0に初期化してください var Counter: integer; const MaxCount: integer = 5; procedure TForm1.Button1Click(Sender: TObject); begin if Counter < (MaxCount+1) then begin Inc(Counter); Label1.Caption := IntToStr(Counter); end begin ShowMessage('最大カウント数を超えました'); end; end;
←解決時は質問者本人がここをチェックしてください。
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.