Delphi初心者のための寺子屋
■ このスレッドは過去ログ倉庫に格納されています
0047デフォルトの名無しさん
2005/12/01(木) 23:13:41p:=0;
cnt:=0;
str:=Memo1.Text;
len:=length(sword);
repeat
ap:=Pos(sword, copy(str, p, High(Integer)));
if ap>0 then
begin
p:=p+ap;
Inc(cnt);
Inc(p, len);
end;
until ap=0;
ShowMessage(IntToStr(cnt));
■ このスレッドは過去ログ倉庫に格納されています