Feature Rich
Rapid Application Development
Helping you or your customers
Manage their Business

All Commands All Reference
Commands

OBJ_ROOT

Returns the ID of the root object of the specified object of the specified type.

If, for example, you want to get the page that a comment was placed on then you should use this function, providing the comment ID and 0 as the object type. The root might not be the comments parent as a comment can be added to a comment.

Number Name Default Type Description
1 obj_id Current Object ID Integer The id of the object you want to find the root of.
2 obj_type 0 Integer The Type of the object you are looking for.
to add a Comment.