If dxCountChildren(entity) > 0 For childcount = 1 to dxCountChildren(entity) child = dxGetChild(entity,childcount) Next Endif