VTable Class: Pointer Fields Creation
Declaration:
CreateObjectPtrField( inName as String, inTarget as VTable, inOnDeletion as Integer = kCascade, inFlags as EVFlag = fNone, inLinkName as String = "" ) as VObjectPtr
Parameters:
- inName - The name of the field.
- inTarget - The target table.
- inOnDeletion - The behavior on deletion of the record-owner.
- inFlags - The flags of the field.
- inLinkName - The link name for this ObjectPtr-link.
Description:
Creates an ObjectPtr field.
- You need to specify a target table and deletion control.
- You can specify flags for a field to modify its behavior.
Example:
fldAge = tblPerson.CreateObjectPtrField(
"ParentPtr", EVFlags.fNullable + EVFlags.fIndexed )