Hello,
> How can I use fillchar to give an ansistring a value of, say
> 'x'? In other words, I want to create a string that contains
> only a single character, that is repeated a certain number of times.
E.g. this should work (with some typecasting ;-):
{$MODE DELPHI}
var
s : AnsiSt
On Tue, 9 Dec 2003, Mark Emerson wrote:
> How can I use fillchar to give an ansistring a value of, say
> 'x'? In other words, I want to create a string that contains
> only a single character, that is repeated a certain number of times.
Use
S:=StringOfChar('X',30);
Michael.