本文整理自网络,侵删。
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 实现卸载windows应用程序(类似360软件管家-卸载程序)
Delphi 在 api 函数中使用 pchar 参数的几种方法
更多相关阅读请进入《Delphi》频道 >>