home *** CD-ROM | disk | FTP | other *** search
- Program InspectorExample;
- { This sample program is used to introduce the reader to the }
- { inspect window of the Turbo Debugger. We will use it to }
- { view large data items, view a function, and inspect a }
- { complex data item. }
-
- {$I DEBUG.INC}
-
- Type
- ArrayType = Array[1..200] of Byte;
-
- RecType = Record
- I : Integer;
- R : Real;
- A : ArrayType;
- End;
-
- Var
- X : RecType;
-
- Function Initialize( Var X : RecType ) : Boolean;
- Begin
- X.I := 0;
- X.R := 0.0;
- FillChar( X.A, SizeOf( X.A ), #0 );
- Initialize := True;
- End;
-
- Begin
- If( Initialize( X ) ) Then
- Writeln( 'TRUE' )
- Else
- Writeln( 'False' );
- End.
-