Hello Mark > > 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 _______________________________________________ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal