next up previous contents index
Next: New Up: Functions and Procedures Previous: Mkdir

Move

   

Declaration:

Procedure Move (var Source,Dest;Count : longint) ;

Description:

Move moves Count bytes from Source to Dest.

Errors:

If either Dest or Source is outside the accessible memory for the process, then a run-time error will be generated. With older versions of the compiler, a segmentation-fault will occur.

See also:

Fillword, Fillchar

Example
Program Example42;

{ Program to demonstrate the Move function. }

Var S1,S2 : String [30];

begin
  S1:='Hello World !';
  S2:='Bye, bye    !';
  Move (S1,S2,Sizeof(S1));
  Writeln (S2);
end.



Michael Van Canneyt
Thu Sep 10 14:02:43 CEST 1998