Hello Mark
Show quoted text 7 lines
How can I use fillchar to give an ansistring a value of, say
'xxxxxxxxx'? In other words, I want to create a string that contains
only a single character, that is repeated a certain number of times.
Mark
There is an example in the reference guide for function FillChar. Not exactly for ansistring. Try the following:
var s : ansistring;
begin
setlength(s,100);
FillChar(s[1],100,'x');
writeln(s);
end;Hope that helps
Gerhard
