本文整理自网络,侵删。
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的datetostr strtodate格式灵活用法
Delphi firemonkey应用程序中显示时隐藏虚拟键盘
更多相关阅读请进入《Delphi》频道 >>