1. Computing
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?

©2013 About.com. All rights reserved.