ftObject
ftObject = 50
Example
function IsObjectParameter(DataType: TFieldType): Boolean;
begin
Result := DataType = ftObject;
end;
Usage
ftObject identifies an object parameter reference rather than a persisted scalar or structured dataset field.
Additional Technical Info
ftObject is ordinal 50 of TFieldType. Embarcadero defines it for a TObject parameter used by DataSnap. The installed RTL has no default ordinary field class for it.
It represents a live object reference or framework-marshalled object, not a serializable pointer value. The calling API determines the required class, instance ownership and whether the receiver may mutate, retain or free it. Never persist the address, assume ownership from the enum or cast without verifying the expected type.
Object graphs can expose methods, secrets and mutable process state. Limit use to trusted in-process/framework contracts and treat nil separately.
The example only compares metadata and was source-reviewed; no object creation, DataSnap, dataset, runtime or image test ran.
External references
- Embarcadero
TFieldTypeandTObject. - Free Pascal
TFieldTypecompatibility reference; DataSnap behavior is Delphi-specific.