[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
MOVE Mass Memory Move pp 136
Syntax: Move (From, To, Count) ;
Type: All
Form: Procedure
Purpose: Does a mass move directly in memory from Var1 to Var2 of Count
bytes.
Notes: Move automatically handles any overlap between Var1 and Var2.
The {R+} directive will not catch an overflow condition.
----------------------------------------------------------------------------
Usage:
CONST
Count : Integer = 50 ; { Byte count to move }
VAR
Var1 : String [50] ; { Short string }
Var2 : String [80] ; { Long string }
BEGIN
Move (Var1, Var2, Count) ; { This moves without overflow }
Move (Var2, Var1, 80) ; { This move will overflow }
Move (Var1, Var2, sizeof(Var1)); { This will move safely }
END.
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson