TStringField class
Field class to handle ansistring fields.
Declaration
TStringField = class(TField)Inheritance
- TStringField
- TField
- TComponent
- TPersistent
- TObject
Descends from it: TGuidField TWideStringField
Description
TStringField is the class used whenever a dataset has to handle a string field type (data type
ftString).
This class overrides some of the standard
TField methods to handle string data,
and introduces some properties that are only pertinent for data fields of string type.
It should never be necessary to create an instance of
TStringField manually, a field
of this class will be instantiated automatically for each string field when a dataset is opened.See also
Properties
CodePage | public | Codepage of the field string data. |
FixedChar | public | Is the string declared with a fixed length ? |
Transliterate | public | Should the field value be transliterated when reading or writing. |
Value | public | Value of the field as a string. |
EditMask | published | Specify an edit mask for an edit control. |
Size | published | Maximum size of the string. |
Methods
CheckTypeSize | protected | |
GetAsBoolean | protected | |
GetAsDateTime | protected | |
GetAsFloat | protected | |
GetAsInteger | protected | |
GetAsLargeInt | protected | |
GetAsLongWord | protected | |
GetAsString | protected | |
GetAsAnsiString | protected | |
GetAsUTF8String | protected | |
GetAsVariant | protected | |
GetDataSize | protected | |
GetDefaultWidth | protected | |
GetText | protected | |
GetValue | protected | |
SetAsBoolean | protected | |
SetAsDateTime | protected | |
SetAsFloat | protected | |
SetAsInteger | protected | |
SetAsLargeInt | protected | |
SetAsLongWord | protected | |
SetAsString | protected | |
SetAsAnsiString | protected | |
SetAsUTF8String | protected | |
SetVarValue | protected | |
SetValue | protected | |
Create | public | Create a new instance of the TStringField class. |
SetFieldType | public | Set the field type. |
Inherited
From TField (118)
AccessError Alignment 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 EditMaskPtr FieldDef FieldKind FieldName FieldNo FocusControl FreeBuffers GetAsBCD GetAsBytes GetAsCurrency GetAsExtended GetAsLongint GetAsSingle GetAsUnicodeString 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 SetAsBCD SetAsBytes SetAsCurrency SetAsExtended SetAsLongint SetAsSingle SetAsUnicodeString SetAsVariant SetAsWideString SetData SetDataset SetDataType 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.
