[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'EditBtn' (#lcl)

TTimeEdit.TimeSeparator

Specifies the separator character used to delimit time parts in the format settings applied to the control.

Declaration

Source position: editbtn.pas line 810

published property TTimeEdit.TimeSeparator : string
  read FTimeSeparator
  write SetTimeSeparator;

Description

TimeSeparator is a String property which contains the separator used to delimit time parts specified in the TimeFormat property. It allows the default time separator from the system format settings to be overridden in the class instance.

Changing the value for the property causes the Text property to be updated using the new separator.

TimeSeparator is used in the UsedTimeSeparator method called when a new value is assigned to the Time property. When omitted, the default time separator in DefaultFormatSettings is used instead.

Please note: While TimeSeparator is a String type, only the first character specified in the property is actually used. The other characters in the property are ignored.

Use TimeFormat to specify the time format settings used in the class instance.

Version info

Added in LCL version 4.0.

See also

TTimeEdit.Time

  

Represents the time value in the control.

TTimeEdit.Text

  

Contains the formatted text used to represent the Time value for the control.

TTimeEdit.TimeFormat

  

Specifies the time format used to generate the display Text for the time edit control.

TTimeEdit.ValidTimeFormat

  

Indicates whether the specified value is a valid time format for the TTimeEdit control.

TTimeEdit.UsedTimeSeparator

  

Gets the effective time separator character used in the short time format settings.

FormatDateTime

FormatChars


Version 4.0 Generated 2025-05-03 Home