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