mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-05-02 07:53:42 +02:00
18 lines
280 B
ObjectPascal
18 lines
280 B
ObjectPascal
Program Example103;
|
|
|
|
{ Program to demonstrate the FillByte function. }
|
|
|
|
Var S : String[10];
|
|
I : Byte;
|
|
|
|
begin
|
|
For i:=10 downto 0 do
|
|
begin
|
|
{ Fill S with i bytes }
|
|
FillChar (S,SizeOf(S),32);
|
|
{ Set Length }
|
|
SetLength(S,I);
|
|
Writeln (s,'*');
|
|
end;
|
|
end.
|