Documentation
IPS_SetLinkTargetID
Require: Symcon >= 2.6
bool IPS_SetLinkTargetID (int $LinkID, int $LinkedObject)
Parameters
| LinkID | ID of the link to be changed |
| LinkedObject | ID of the target object for the link |
Returns
If the function succeeds, it returns TRUE, otherwise FALSE.
Description
The function links the object LinkedObject to the link LinkID, so that the link refers to this object. The object must exist and must not be a link itself, otherwise the function fails ("TargetID must not be another Link").
Example
IPS_SetLinkTargetID($LinkID, 12345); //Refer to object 12345