ftGuid
ftGuid = 35
Example
function IsGuidField(Field: TField): Boolean;
begin
Result := Field.DataType = ftGuid;
end;
Usage
ftGuid identifies GUID metadata represented by Velox's specialised string field and convertible to a TGUID value.
Additional Technical Info
ftGuid is ordinal 35 of TFieldType. Delphi maps it to TGuidField, a TStringField descendant, and treats it as base string metadata during field compatibility.
The logical value is a 128-bit GUID, but the provider can store text or native binary. Do not assume braces, hyphen case, byte order or field length from the enum. Parse to a GUID for validation/comparison and emit the exact destination format; string comparison can be affected by formatting rather than identity.
Null is distinct from the all-zero GUID and from empty/invalid text. Conversion can raise on malformed values. Avoid generating identifiers by string manipulation; use the approved GUID functions.
The example only inspects metadata and was source-reviewed; no GUID parsing, dataset, database, runtime or image test ran.
External references
- Embarcadero
TFieldType,TGuidFieldandTGUID. - Free Pascal
TFieldTypecompatibility reference.