delphi PosAnsi
2021-02-14 11:17
阅读:332
标签:sans body int result ansi nbsp pre validate div delphi PosAnsi 标签:sans body int result ansi nbsp pre validate div 原文地址:https://www.cnblogs.com/westsoft/p/8449593.html
function ValidateName(n: string): string;
var banned, res: string; i,j: integer;
begin
res:= n;
banned:= ‘\/:*?"|‘;
for i:= 1 to Length(res) do
for j:= 1 to Length(banned) do
if res[i]=banned[j] then res[i]:=‘ ‘;
Result:= res;
end;
评论
亲,登录后才可以留言!