Delphi Conduit Library Help

Introduction

Main Index

General Info

TpfgPalmComponent

TpfgHotSyncActionDialog

TpfgPalmRemoteTable

TpfgPalmLocalTable

TpfgUserManager

TpfgPalmSyncComponent

TpfgPalmInstall

FAQ

  

Properties

Alignment
Items [rt]
StrictFields

Methods

Add
Insert

TpfgPalmFieldDefs

This class provides an equivalent function to the standard TFieldDefs class - allowing the setup of a set of field definitions. Since the Palm has no concept of fields within a table, it is necessary to set up a field list (either at design time or run time) which will be used to map fields into a raw data structure doing record reads and writes.

Properties

Alignment: LongWord
Specifies the alignment of fields within the record structure. By default this is zero, for no alignment, but by setting this to a non-zero value, all fields within the table will be automatically alignment to boundaries of the specified number of bytes

Items[Index: Integer]: TpfgPalmFieldDef
Returns the field definition object at the specified index

StrictFields: Boolean
Specifies whether retrieved Palm records must match the field definition exactly. Turning it off may be usefull in certain variable field based databases, such as the Address book, where there is a variable number of strings at the end of the record - you could define enough string fields to handle the excepted maximum number of string fields, and then read in individual fields to see if they're filled in.

Note that this property has no effect on the writing of records, so any record written with extraneous field definitions will have values for all fields included in the record (strings for example, will have a one byte ASCIIZ '0' terminator to indicate an empty string).

Methods

function Add: TpfgPalmFieldDef;
function Add(AFieldName: string; ADataType: TpfgPalmFieldType; Size: Integer = 0): TpfgPalmFieldDef

Creates a new field definition. You can either create a blank field definition object, or directly provide values to fill out the new definition as

function Insert(Index: Integer): TpfgPalmFieldDef;
Inserts a new field definition object into the list at the specified index