Shortcuts For Development

ShInt

Displays a floating-point number as an integer, primarily for debugging or logging purposes.
The output is shown using a default visual or logging mechanism.
Procedure ShInt(N: Double);

Parameters

  • N: Double; the number to display as an integer.

ShTime

Displays a time value, typically as a human-readable date-time string.
Intended for quick visual debug output.
Procedure ShTime(TimeVal: Double);

Parameters

  • TimeVal: Double; the time value to display (usually a TDateTime).

ShBool

Displays the value of a Boolean variable for logging or visual feedback.
Shows "True" or "False" accordingly.
Procedure ShBool(Flag: Boolean);

Parameters

  • Flag: Boolean; the Boolean value to display.

ShDG

Displays the contents or reference of a data grid or component with an optional title.
Primarily used for debugging or UI inspection of tabular components.
Procedure ShDG(CONST Table: TComponent; Title: String = '');

Parameters

  • Table: TComponent; the grid or visual component to inspect.
  • Title: String; optional caption to label the displayed output.

EnDate

Encodes a date (year, month, day) into an integer. Used for storing or comparing dates as single values.
Function EnDate(Year, Month, Day: Word): Integer;

Parameters

  • Year: Word; the year part of the date.
  • Month: Word; the month part (1–12).
  • Day: Word; the day part (1–31).

Return Value

Returns an integer representation of the date components.