Switch to: V14V13V12V11V10V9V8V7V6V5

VLink Class: Properties

VLink.BranchCount

Declaration:

BranchCount as Integer (r/o)

Description:

Returns the number of branches for this link.

Example:

brc = Link.BranchCount

VLink.ID

Declaration:

ID as Integer (r/o)	

Description:

Returns the ID of this link. A temporary link has a negative ID.

Example:

link_id = Link.ID

VLink.IsTemporary

Declaration:

IsTemporary as Boolean (r/o)

Description:

Returns TRUE if this link is temporary.

Example:

tmp = Link.IsTemporary

VLink.KeyValueCount

Declaration:

KeyValueCount as Integer (r\o)

Description:

Returns the count of KeyValuesForLink in this BinaryLink. This property is indirectly changed when you create/drop a KeyValue object.

Example:

count = link.KeyValueCount

VLink.Name

Declaration:

Name as String 	

Description:

Returns the name of the link.

Example:

s = L ink.Name

VLink.OnDelete

Declaration:

OnDelete as EVOnDelete

Description:

The behavior on deletion of the record owner.

Example:

v = Link.OnDelete

VLink.OnUpdate

Declaration:

OnUpdate as EVOnUpdate 

Description:

The behavior on the update of the record owner.

Example:

v = Link.OnUpdate

VLink.Owner

Declaration:

Owner	as VTable 

Description:

The table which is the owner of the link. For symmetric links 1:1 and M:M Valentina cannot define which one of tables will be the owner of the link. You can use this property to define the owner.

Note, that you should specify this property only if you are going to use the DeletionControl for this link.

Example:

Link.Owner = tblPerson