My program creates a selection set and does it's stuff. Then it deletes it. But when debugging and if i make a mistake and it bombs out (for whatever reason) the selection set remains there. When I run it again, it crashes because the selection set already exists. i can't work how to test if a given selection set exists and delete it BEFORE creating mine so as to avoid this error. How do i do that? I tried using item but then that will crash if there is no selection set of that name present. so i can't win. Thanks.