View Single Post
Quote:
Originally Posted by DamonC View Post
I've also added a test to see if the selected item is a project by trapping for a parent task. I don't know if that's the correct way to test an item for being a project but it's all I could come up with for now.
To check whether anItem is a project use:
Code:
if (class of anItem is project) then
    -- do something projecty with anItem
end if
__________________
Cheers,

Curt