本文整理自网络,侵删。
function SymbolEntersCount(s: string; ch: char): integer;vari: integer;beginResult := 0;if Trim(s) <> '' then for i := 1 to Length(s) do if s[i] = ch then inc(Result);end;
相关阅读 >>
Delphi winapi: getnextwindow - 获取指定窗口z上或z下的窗口的句柄
更多相关阅读请进入《Delphi》频道 >>