Description
This is the Child Cardinality No of the relationship: Zero or One to Zero or More = 0, Zero or One to One or More = 1, Zero or One to Zero or One = 2, Zero or One to exactly N = 3. DATATYPE: Integer.
Property type
Read-write property
Syntax
Visual Basic |
Public Property CardinalityNo() As Variant |
Remarks
Values may be:
Mandatory:
One to Zero or More = 0
One to One or More = 1
One to Zero or One = 2
One to Exactly N = 3
Optional:
Zero or One to Zero or More = 0
Zero or One to One or More = 1
Zero or One to Zero or One = 2
One to Exactly N = 3
Example
Sub Main
Dim d As Diagram
Dim m As Model
Dim rel As Relationship
Set d = DiagramManager.ActiveDiagram
Set m = d.ActiveModel
'Force every Relationship to be Mandatory and One-To-One or More
For Each rel In m.Relationships
rel. = 1
rel.CardinalityNo = 1
Next rel
End Sub