CRT Documentation: Reference

ScreenWidth

[This function does not have a corresponding DOS function.]

Returns the width of the screen.

function ScreenWidth: integer;

Parameters

This function has no parameters.

Return Values

Returns the width of the console/screen in character cells.

Remarks

The return value is 1-based. This is a new function for Delphi and was not previously available in Turbo Pascal or Borland Pascal.

See Also

Crt Overview, ScreenHeight