[Overview][Constants][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Field class for date/time/Datetime values
Source position: db.pas line 683
type TDateTimeField = class(TField) |
||
protected |
||
function GetAsDateTime; override; |
||
function GetAsFloat; override; |
||
function GetAsString; override; |
||
function GetAsVariant; override; |
||
function GetDataSize; override; |
||
procedure GetText(); override; |
||
procedure SetAsDateTime(); override; |
||
procedure SetAsFloat(); override; |
||
procedure SetAsString(); override; |
||
procedure SetVarValue(); override; |
||
public |
||
constructor Create(); override; |
|
Create a new instance of a TDateTimeField class. |
|
Contents of the field as a TDateTime value |
|
published |
||
property DisplayFormat: String; [rw] |
|
Formatting string for textual representation of the field |
end; |
|
Field class for date/time/Datetime values |
|
| | ||
|
Provide access to the contents of a single field in a record |
|
| | ||
| | ||
| | ||
TDateTimeField is the class used when a dataset must manage data of type datetime. (TField.DataType equals ftDateTime). It also serves as base class for the TDateField or TTimeField classes. It overrides some of the properties and methods of the TField class to be able to work with date/time fields.
It should never be necessary to create an instance of TDateTimeField manually, a field of this class will be instantiated automatically for each datetime field when a dataset is opened.
|
Base class for records-based data-access |
|
|
Provide access to the contents of a single field in a record |
|
|
Field class for date values |
|
|
Field class for time values |
lazarus-ccr.sourceforge.net |