The LinkAdd function adds a PowerDoc link to the PowerDoc object referenced by obj. A PowerDoc link is one of the basic field types.
Parameter | Description | ||||
---|---|---|---|---|---|
obj |
Object's index in the Power Engine document. | ||||
name |
A numerical value that identifies the link to be added. Can be a user-defined value or one of the following predefined PowerDoc values:
| ||||
link |
Represents the index of the linked PowerDoc object. |
If the function was successful, the return value is 1. Otherwise, the function returns 0 (bad input) or -1 (memory error).
To avoid unexpected rendering results, links must be assigned to PowerDoc objects in accordance with D-Type's Guidelines For Creating PowerDoc Objects.