home *** CD-ROM | disk | FTP | other *** search
- Program XChange;
-
- {$L SWAP.OBJ}
-
- {$F+}
- Procedure Swap ( var one, two; MoveSize : Word ); external;
- {$F-}
-
- Type
- recType = Record
- b : Byte;
- w : Word;
- r : Real;
- s : String;
- End;
-
- Var
- r1,
- r2 : recType;
-
- Begin
- r1.b := 163; { Initialize record R1 }
- r1.w := 12345;
- r1.r := 3.14159;
- r1.s := 'This is a test. Number 1';
-
- r2.b := 136; { Initialize record R2 }
- r2.w := 54321;
- r2.r := 123.321;
- r2.s := 'This is the second string. Number 2';
-
- Swap ( r1, r2, SizeOf ( r2 ) ); { Swap R1 and R2 }
- End.