Switch to: V12V11V10V9V8V7V6V5

VObjectPtr Class: Construction Methods

VObjectPtr.VObjectPtr()

Declaration:

VObjectPtr( 
	inName as String,
	inTarget as VTable,
	inOnDeletion as  EVOnDelete = kSetNull,
	inFlags as EVFlag = fNone,
	inLinkName as String = "" )

Parameters:

  • inName - The name of a field.
  • inTarget - The target table.
  • inOnDeletion - The behavior on deletion of the record-owner.
  • inFlags - The field flags. Default is fNone.
  • inLinkName - The name of the link.

Description:

Constructor of ObjectPtr field.

You may need to use this method only if you use the Class Style of coding.

Example:

sub tblPhone
    mfPersonPtr = new VObjectPtr(
        "PersonPtr", 
        tblPerson, 
        EVOnDelete.kSetNull, 
        fIndexed + fNullable, 
        "linkPersonPhone1M" )
end sub