[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FILLCHAR               Fill Memory With Given Value                  pp 136

 Syntax:  FillChar (Var1, Count, Value) ;

 Type:    N/A

 Form:    Procedure

 Purpose: Fill a range of memory with a given value.

 Notes:   Var1 is the starting address of any type variable in memory.
          Count is the number of bytes to fill with Value.
 ----------------------------------------------------------------------------


 Usage:
       VAR
          Var1  : String [80]                  ;   { Any type of variable }
          Count : Integer                      ;   { Number fill bytes    }
          Value : Byte                         ;   { Value of fill byte   }

       BEGIN
          FillChar (Var1, Count, Value)        ;   { Execute the fill     }
          FillChar (Var1, SizeOf(Var1), Value) ;   { Can't overflow Var1  }
       END.

See Also: Move SizeOf
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson