home *** CD-ROM | disk | FTP | other *** search
- Program EvaluateDemo;
- { A simple example program that will show how to use the }
- { evaluate option of the debugger to change the value of }
- { a variable, and evaluate a function contained in the }
- { System Unit. }
- Uses Crt; { Link in the CRT unit }
-
- Var
- SCopy, { Define string vars for demo }
- S : String;
- I : Integer; { Loop control variable }
-
- Begin
- ClrScr; { Clear the output screen }
- S := 'This is a test string that contains text';
- { Initialize string for demo }
- For I := 0 to Length( S ) Do
- SCopy[I] := S[I]; { Simple copy routine }
- Writeln( 'S = ', S ); { Output the string to screen }
- For I := 1 to Length( SCopy ) Do
- { Output the copy to screen }
- Write( SCopy[I] ); { Here is where we'll modify }
- End. { the Loop Control Variable }