7

The Pascal procedure,

DayWeather.p

Consider this example:

type

TDayWeather = record

TDay: array [0..8] of char;

TWeather:array [0..20] of char;

end;

TDayWeatherArray = array [0..1] of TDayWeather;

procedure DayWeather ( var W: TDayWeatherArray; var WeatherSize: integer );

begin

W[1].TDay := 'Sunday';

W[1].TWeather := 'Sunny';

WeatherSize := 5;

end;

148

Pascal 4.0 User’s Guide

Page 172
Image 172
HP SunSoft Pascal 4.0 manual Pascal procedure, 148