Skip to content

TBANumeric

Unit: BoldAttributes

Declaration

TBANumeric = class(TBoldAttribute)

Hierarchy

  1. TObject
  2. TBoldMemoryManagedObject
  3. TBoldFlaggedObject
  4. TBoldSubscribableObject
  5. TBoldElement
  6. TBoldDomainElement
  7. TBoldMember
  8. TBoldAttribute
  9. TBANumeric
  10. Direct subclasses
  11. TBACurrency
  12. TBAFloat
  13. TBAInteger

Description

This is an abstract superclass of all numeric attribute types in Bold. It can be read as a float value, and written as an integer value (not all numeric types can store float values).

Properties

Name Summary Notes
AsFloat The value of the attribute, represented as a Double read-only
AsInteger

AsFloat

property AsFloat: Double;

This is the numeric value of the attribute. Note that it can only be read, not written.

AsInteger

property AsInteger: Integer;

This property is write only. Since some numeric types contain decimals, you must do the rounding yourself if you need to read an integer value from a TBANumeric. Use either round(asFloat) or trunc(asFloat).

Methods

Name Summary Notes
GetAsFloat protected, abstract
SetAsInteger protected, abstract
SetEmptyValue override

GetAsFloat

function GetAsFloat: Double; virtual; abstract;

SetAsInteger

procedure SetAsInteger(Value: integer); virtual; abstract;

SetEmptyValue

procedure SetEmptyValue; override; See also Ancestor Method

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.