AddChild

Adds a new DataRow to the named parent/child relationship. If the named relationship exists, the supplied DataRow will be appended to the existing DataRow collection. Otherwise, a new collection will be created with the supplied DataRow as its only element.

Syntax

Sub addChild( childName As String, childDataRow As DataRow) 

Parameters

  • The name of the parent/child relationship (e.g., "Flood Plain Data," "References, " "Used By," etc.)
  • The DataRow to be added to the relationship.

Results

None.

Example

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