1. Home
  2. Computing & Technology
  3. Delphi Programming
Glossary|Tips/Tricks|FREE App/VCL|Best'O'Net|Books|Link Back

Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
 

FillChar

unit
System
category
Character manipulation routines

declaration
procedure FillChar(var X; Count : Integer; Value : Byte);

description
Charges a variable with adjoining values of byte or char.

Value can be type Byte or Char.

example
var S: array[0..79] of char;

// Set to all zeros
FillChar(S, SizeOf(S), Ord('0'));

in real code

see also
Ord, StringOfChar, SizeOf,


 Free Delphi code snippet inside every Delphi Newsletter!
Subscribe to the Newsletter
Name
Email

 Got some code to share? Got a question? Need some help?
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >