TBCDField class
Field class for Binary Coded Decimal (BCD) values.
Declaration
TBCDField = class(TNumericField)Inheritance
Description
TBCDField is the class used when a dataset must manage data of Binary Coded Decimal type. (
DataType equals
ftBCD).
It initializes some of the properties of the
TField class, and overrides some of its methods to be able to work with BCD fields.
TBCDField assumes that the field's contents can be stored in a currency type, i.e. the maximum number of decimals
after the decimal separator that can be stored in a
TBCDField is 4. Fields that need to store a larger amount
of decimals should be represented by a
TFMTBCDField instance.
It should never be necessary to create an instance of TBCDField manually, a field
of this class will be instantiated automatically for each BCD field when a dataset is opened.
See also
Properties
Value | public | Value of the field contents as a Currency type. |
Precision | published | Precision of the BCD field. |
Currency | published | Does the field represent a currency amount. |
MaxValue | published | Maximum value for the field. |
MinValue | published | Minimum value for the field. |
Size | published | Number of decimals after the decimal separator. |
Methods
CheckTypeSize | protected | |
GetAsBCD | protected | |
GetAsCurrency | protected | |
GetAsFloat | protected | |
GetAsInteger | protected | |
GetAsString | protected | |
GetValue | protected | |
GetAsVariant | protected | |
GetDataSize | protected | |
GetDefaultWidth | protected | |
GetText | protected | |
SetAsBCD | protected | |
SetAsFloat | protected | |
SetAsInteger | protected | |
SetAsString | protected | |
SetAsCurrency | protected | |
SetVarValue | protected | |
Create | public | Create a new instance of a TBCDField class. |
CheckRange | public | Check whether a values falls within the allowed range. |
Inherited
From TNumericField (8)
Alignment DisplayFormat EditFormat GetAsBoolean RangeError SetAsBoolean SetDisplayFormat SetEditFormat
From TField (125)
AccessError AsAnsiString AsBCD AsBoolean AsBytes AsCurrency AsDateTime AsExtended AsFloat AsInteger AsLargeInt AsLongint AsLongWord Assign AssignValue AsSingle AsString AsUnicodeString AsUTF8String AsVariant AsWideString AttributeSet Bind Calculated CanModify Change CheckInactive Clear ConstraintErrorMessage CurValue CustomConstraint DataChanged DataSet DataSize DataType DefaultExpression Destroy DisplayLabel DisplayName DisplayText DisplayWidth EditMask EditMaskPtr FieldDef FieldKind FieldName FieldNo FocusControl FreeBuffers GetAsAnsiString GetAsBytes GetAsDateTime GetAsExtended GetAsLargeInt GetAsLongint GetAsLongWord GetAsSingle GetAsUnicodeString GetAsUTF8String GetAsWideString GetCanModify GetClassDesc GetCurValue GetData GetDisplayName GetIsNull GetNewValue GetOldValue GetParentComponent HasConstraints HasParent ImportedConstraint Index IsBlob IsIndexField IsNull IsValidChar KeyFields Lookup LookupCache LookupDataSet LookupKeyFields LookupList LookupResultField NewValue Notification Offset OldValue OnChange OnGetText OnSetText OnValidate Origin ParentField PropertyChanged ProviderFlags ReadOnly ReadState RefreshLookupList Required SetAsAnsiString SetAsBytes SetAsDateTime SetAsExtended SetAsLargeInt SetAsLongint SetAsLongWord SetAsSingle SetAsUnicodeString SetAsUTF8String SetAsVariant SetAsWideString SetData SetDataset SetDataType SetFieldType SetNewValue SetParentComponent SetParentField SetSize SetText Text Validate ValidChars Visible
From TComponent (69)
_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetChildren GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetTypeInfo GetTypeInfoCount iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetName SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState
From TPersistent (4)
AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers
From TObject (37)
AfterConstruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
