Switch to: V12V11V10V9V8V7V6V5

VLink2 Class: Refactoring Methods

See details about Link refactoring here.

VLink2.CopyLinksFrom()

Declaration:

CopyLinksFrom( inSourceLink1 as VLink2, inSourceLink2 as VLink2 = nil )

Parameters:

  • inSourceLink1 - Link from which we will read info about linked records.
  • inSourceLink2 - Second optional Link. Used only for MM-table case.

Description:

This method copies the information about linked records (links) from one or two specified Link(s) into this Link.

Example:

' Let we have MM table that links tables Person and Phone
' with the help of two ObjectPtr links linkPersonPtr, linkPhonePtr.
' Now we want to convert this into BinaryLink linkPersonPhoneMM.
linkPersonPhoneMM.CopyLinksFrom( linkPersonPtr, linkPhonePtr )

VLink2.CopyLinksTo()

Declaration:

CopyLinksTo( inDestLink1 as VLink2, inDestLink2 as VLink2 )

Parameters:

  • inDestLink1 - Link from which we will read info about linked records.
  • inDestLink2 - The second Link. Used only for MM-table case.

Description:

This method copies the information about linked records (links) from this link to the specified two Links. Usually this happens if you convert Binary Link into MM-Table case.

Example:

linkPersonPhoneMM.CopyLinksTo( linkPersonPtr, linkPhonePtr )