The Word data type is an ordinal integer type, capable of holding positive values starting at zero (0), and up to 65535 only.

It occupies 16 bits of storage - or 2 bytes.

There are some functions such as YearOf where a Word data type is returned.

Declaration: var myvariable : word;

Numbers higher than 65535 will start back at zero (0) at every 65536 - as per the following example.

procedure ScriptEvent (var Value : variant);
var
min, max : word;
begin
LogInfo('');
// Set the minimum and maximum values of this data type
min := 0;
LogInfo('Min word value = '+IntToStr(min));
LogInfo('');
max := 65534;
LogInfo('Max word value = '+IntToStr(max)); //Result is 65534
max := 65535;
LogInfo('Max word value = '+IntToStr(max)); //Result is 65535
max := 65536;
LogInfo('Max word value = '+IntToStr(max)); //Result is zero (0)
max := 70000;
LogInfo('Max word value = '+IntToStr(max)); //Result is 4464 (70,000 - 65536)
LogInfo('');
 
end;

Please also refer to Integer (Integer, Cardinal, Int64) for additional information.