type
TIdentifier = array[0..15] of Char;
TFileName = array[0..259] of Char;
TMemoText = array[0..1023] of WideChar;
With extended syntax enabled (
{$X+}
), you can assign a string constant to a statically allocated zero-based
character array. (Dynamic arrays won't work for this purpose.) If you initialize an array constant with a string that is
shorter than the declared length of the array, the remaining characters are set to
#0
.
Dostları ilə paylaş: