AddChild

新しい DataRow を指定された親子関係に追加します。 指定された関係が存在する場合、与えられた DataRow は既存の DataRow コレクションに追加されます。 存在しない場合、与えられた DataRow を唯一の要素として新しいコレクションが作成されます。

構文

ASCII バージョン
void addChild(const char* childName, SmartPointer<DataRow> childDataRow) 
Unicode バージョン
void addChild(const UnicodeString childName, SmartPointer<DataRow> childDataRow) 

パラメータ

  • 親子関係の名前 ("Flood Plain Data"、"References"、"Used By" など)。
  • 関係に追加する DataRow。

SmartPointer<DataRow> childDataRow =new DataRow(); 
childDataRow ->set("Address", "100 Congress"); 
childDataRow ->set("City", "Austin"); 
SmartPointer<DataRow> dataRow =new DataRow(); 
dataRow->addChild("child1", childDataRow );