remove_depend_item(item_id, ditem_id)



Description

this function removes the dependents, the second item (ditem_id), from the first item (item_id).

Example

x=get_select_items()
maxx=table.maxn(x)
for inc1=1,maxx do
for inc2=1,maxx do
if has_depend_item(x[inc1], x[inc3])==1 then
remove_depend_item(x[inc1], x[inc3])
msgbox("Item "..get_folder_value("ItemID",x[inc1]).." Depends "..get_folder_value("ItemID",x[inc3]),"Removed depends reference")
end
end
end


This bit of code will check all selected items and determine if they have any dependencies and if there is it removes the references.