Extended MAPI in DELPHI
LazyMAPI
Included helper classes
TMAPITableRowField
unit: MAPITable.pas
file path: ..\Library\Helpers\
version: 2026.11
uses Classes, Windows, ActiveX, Types, SysUtils, ExtendedMAPI, IMIEMTypes, MAPIRestriction
TMAPITableRowField is one column value of a TMAPITableRow (an SPropValue) with typed access; the values of a multi-valued column are a TMAPIMultiValue.
TMAPITableRowField = class(TMAPIBase)
unit MAPITable.pas
| Kind | Declaration | Description |
| constructor | constructor Create(const PropValue: PSPropValue); |
A column value of a row (the property value is copied). |
| destructor | destructor Destroy; override; |
Frees the copied value. |
| property | property PropName: String read GetPropName; |
The name of the property tag (SzGetPropTag). |
| property | property PropTag: ULONG read GetPropTag; |
The property tag of the value (PT_ERROR type when the row has no value for the column). |
| property | property PropType: ULONG read GetPropType; |
The property type of the value. |
| property | property PropID: ULONG read GetPropID; |
The property ID of the value. |
| property | property IsMultiValued: Boolean read GetIsMultiValued; |
True for a multi-valued property type. |
| property | property IsNamed: Boolean read GetIsNamed; |
True for a named property (ID $8000 and above). |
| property | property IsError: Boolean read GetIsError; |
True when the row has no value for the column (PT_ERROR). |
| property | property AsString: String read GetAsString; |
The value as text, for any scalar type (numbers, dates, Boolean, strings, GUID, binary as hexadecimal). |
| property | property AsBoolean: Boolean read GetAsBoolean; |
A PT_BOOLEAN value; False for PT_ERROR. Raises EMAPIError for another type. |
| property | property AsInteger: Integer read GetAsInteger; |
A PT_SHORT / PT_LONG value; 0 for PT_ERROR. Raises EMAPIError for another type. |
| property | property AsInt64: Int64 read GetAsInt64; |
A PT_SHORT / PT_LONG / PT_I8 value (or a PT_SYSTIME as a number); 0 for PT_ERROR. Raises EMAPIError for another type. |
| property | property AsSingle: Single read GetAsSingle; |
A PT_FLOAT value; 0 for PT_ERROR. Raises EMAPIError for another type. |
| property | property AsDouble: Double read GetAsDouble; |
A PT_FLOAT / PT_DOUBLE / PT_CURRENCY / PT_APPTIME value; 0 for PT_ERROR. Raises EMAPIError for another type. |
| property | property AsCurrency: Currency read GetAsCurrency; |
A PT_CURRENCY value; 0 for PT_ERROR. Raises EMAPIError for another type. |
| property | property AsDateTime: TDateTime read GetAsDateTime; |
A PT_SYSTIME value in local time, or a PT_APPTIME value as it is; 0 for PT_ERROR. Raises EMAPIError for another type. |
| property | property AsTaskDate: TDateTime read GetAsTaskDate; |
A floating task date column (PidLidTaskStartDate / PidLidTaskDueDate) as stored, without the UTC conversion of AsDateTime; 0 for “no date” (MAPIUtils.TaskNoDate). |
| property | property AsGUID: TGUID read GetAsGUID; |
A PT_CLSID value. Raises EMAPIError for another type. |
| property | property AsBytes: TBytes read GetAsBytes; |
A PT_BINARY value (other types as their raw bytes); nil for PT_ERROR. |
| property | property Value: Variant read GetVarValue; |
The value as a Variant (ConvertMAPIPropValueToVariant). |
| property | property RawData: PSPropValue read GetRawData; |
The copied property value (owned by the field). |
