CLR - Clear a variable

Language reference ›› Built-in procedures ›› Miscellaneous variable treatments ››
Parent Previous Next


Clear <variable> (fill all with zero).


May be any variable, simple, ARRAY, STRING or RECORD, in RAM or EEPROM.

For strings, only the length byte is cleared.

This is an equivalent to a FILLCHAR(variable, sizeof(variable), 0) stupid statement in TP/Delphi.

See also: FILL.