function Randomstring(strLen: Integer): string;
var
ID: string;
begin
ID := 'QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890';
Result := '';
Repeat
Result := Result + ID[Random(Length(ID)) + 1];
until (Length(Result) = strLen)
end;
所有分号对我来说似乎还不错。我想念什么?
答案 0 :(得分:0)
在until
语句末尾您缺少分号:
until (Length(Result) = strLen); // <-- here