本文整理自网络,侵删。
{自定义产生随机字符串函数}
function GetRandomName:string;
var
SourceStr,Str:String;
i:integer;
begin
SourceStr:='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
for i:=1 to 16 do Str:=Str+SourceStr[Random(51)+1];
Result:=Str;
end; 相关阅读 >>
Delphi中destroy, free, freeandnil, release用法和区别
Delphi isipadress 非正则表达式验证ip的方法
Delphi 窗体form的formstyle属性设置为fsstayontop时属性设置不起作用问题探讨。
更多相关阅读请进入《Delphi》频道 >>