AddChildComment - cXMLDOMTextNode
Encapsulates creation and addition of comments to a node
Type: Procedure
Parameters
| Parameter | Type | Description |
|---|---|---|
| sValue | String | The comment text |
Syntax
Procedure AddChildComment String sValue
Call Example
Send AddChildComment sValue
Description
AddChildComment encapsulates creation and addition of comments to a node. This procedure adds the node but does not return an object. Only elements usually have children (which is why there is also an AddElement function).
Example
Send AddChildComment of hoTable ("Add all records for "+sFile)
This sample creats a child comment for an element, using an interface that created the node but did not create a new DataFlex object (which is why a handle is not returned).
| Col 1 | Col 2 |
|---|---|
| Note: | If for any reason the node cannot be added to the document, an error will be generated. |