[fpc-pascal]ansistring and fillchar

Michael Van Canneyt michael.vancanneyt at wisa.be
Wed Dec 10 09:25:15 CET 2003


On Tue, 9 Dec 2003, Mark Emerson wrote:

> 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.

Use

S:=StringOfChar('X',30);

Michael.




More information about the fpc-pascal mailing list