Category : Pascal Source Code
Archive   : PASTUT.ZIP
Filename : PROCED2.PAS
program Another_Procedure_Example;
var Count : integer;
Index : integer;
procedure Print_Data_Out(Puppy : integer);
begin
Writeln('This is the print routine',Puppy:5);
Puppy := 12;
end;
procedure Print_And_Modify(var Cat : integer);
begin
Writeln('This is the print and modify routine',Cat:5);
Cat := 35;
end;
begin (* main program *)
for Count := 1 to 3 do begin
Index := Count;
Print_Data_Out(Index);
Writeln('Back from the print routine, Index =',Index:5);
Print_And_Modify(Index);
Writeln('Back from the modify routine, Index =',Index:5);
Print_Data_Out(Index);
Writeln('Back from print again and the Index =',Index:5);
Writeln; (* This is just for formatting *)
end;
end. (* of main program *)
{ Result of execution
This is the print routine 1
Back from the print routine, Index = 1
This is the print and modify routine 1
Back from the modify routine, Index = 35
This is the print routine 35
Back from print again and the Index = 35
This is the print routine 2
Back from the print routine, Index = 2
This is the print and modify routine 2
Back from the modify routine, Index = 35
This is the print routine 35
Back from print again and the Index = 35
This is the print routine 3
Back from the print routine, Index = 3
This is the print and modify routine 3
Back from the modify routine, Index = 35
This is the print routine 35
Back from print again and the Index = 35
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/