~ubuntu-branches/ubuntu/feisty/fpc/feisty

« back to all changes in this revision

Viewing changes to fpcdocs/refex/ex25.pp

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-01-27 20:08:50 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070127200850-9mrptaqqjsx9nwa7
Tags: 2.0.4-5
* Fixed Build-Depends.
* Add myself to Uploaders in debian/control.
* Make sure that the sources are really patched before building them.
* Build unit 'libc' on powerpc too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Program Example25;
 
2
 
 
3
{ Program to demonstrate the FillChar function. }
 
4
 
 
5
Var S : String[10];
 
6
    I : Byte;
 
7
begin
 
8
  For i:=10 downto 0 do
 
9
    begin
 
10
    { Fill S with i spaces }
 
11
    FillChar (S,SizeOf(S),' ');
 
12
    { Set Length }
 
13
    SetLength(S,I);
 
14
    Writeln (s,'*');
 
15
    end;
 
16
end.