TBADate¶
A date attribute
Unit: BoldAttributes
Declaration¶
Hierarchy¶
- TObject
TBoldMemoryManagedObjectTBoldFlaggedObject- TBoldSubscribableObject
- TBoldElement
- TBoldDomainElement
- TBoldMember
- TBoldAttribute
- TBAMoment
- TBADate
Description¶
This attribute can be used to store a date. Note that even though the delphi type TDate is able to store hours and minutes, the bold attribute TBADate will remove this information before storing dates.
Properties¶
| Name | Summary | Notes |
|---|---|---|
| AsDate | Actual date value | |
| Days | read-only | |
| Months | read-only | |
| Years | read-only |
AsDate¶
This is the delphi native representation of the date value. It can be both read and written.
Days¶
Months¶
Years¶
Methods¶
| Name | Summary | Notes |
|---|---|---|
| AssignContentValue | protected, override | |
| AssignValue | override | |
| GetStringRepresentation | protected, override | |
| ProxyClass | protected, override | |
| ProxyInterface | override | |
| SetStringRepresentation | protected, override | |
| ValidateCharacter | override | |
| ValidateString | override |
AssignContentValue¶
AssignValue¶
GetStringRepresentation¶
function GetStringRepresentation(Representation: TBoldRepresentation): string; override; See also Ancestor Method
ProxyClass¶
ProxyInterface¶
function ProxyInterface(const IId: TGUID; Mode: TBoldDomainElementProxyMode; out Obj): Boolean; override; See also Ancestor Method
SetStringRepresentation¶
procedure SetStringRepresentation(Representation: TBoldRepresentation; Value: string); override; See also Ancestor Method
ValidateCharacter¶
function ValidateCharacter(C: AnsiChar; Representation: TBoldRepresentation): Boolean; override; See also Ancestor Method
Returns True if C is one of '0'..'9' or the date separator
ValidateString¶
function ValidateString(Value: string; Representation: TBoldRepresentation): Boolean; override; See also Ancestor Method
Returns true if the string can be converted to a date
Generated from the Bold 4.0 help (Help/BfD.chm) by Tools/chm2mkdocs.py; member lists reflect Bold 4.0, see the source for members added since.