AddChild

Ajoute un nouveau DataRow à la relation nommée parent/enfant. Si la relation nommée existe, le DataRow fourni sera ajouté à la collection de DataRow existante. Sinon, une nouvelle collection sera créée avec le DataRow fourni comme son seul élément.

Syntaxe

Sub addChild( childName As String, childDataRow As DataRow) 

Paramètres

  • Le nom de la relation parent/enfant (par ex., « Données de plaine inondable », « Références », « Utilisé par » etc.)
  • Le DataRow à ajouter à la relation.

Résultats

Aucun

Exemple

Dim dataRow As New G1CLIENTLib.dataRow 
Dim childDataRow As New G1CLIENTLib.dataRow 

childDataRow .setByName "Address", "100 Congress" 
childDataRow .setByName "City", "Austin" 
	 
dataRow.addChild "child1", dataRow