掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
集合型のin演算子について (ID:9129)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
> if (c in list) then Edit1.Text := 'OK!'; list ってなんですか? str も使われていませんし。 こんな感じなのでは。 procedure TForm1.Button2Click(Sender: TObject); var c: Char; str: string; begin str := 'abcdfgh'; c := 'a'; if StrScan(PChar(str),c) <> nil then Edit1.Text := 'OK!'; end;
←解決時は質問者本人がここをチェックしてください。
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.