INTERACT FORUM

Windows => Plug-in Development => Topic started by: cncb on August 01, 2008, 10:41:37 am

Title: How to tell if ViewItem exists? GetViewItem() always "works"
Post by: cncb on August 01, 2008, 10:41:37 am
GetViewItem() always seems to return a "valid" ViewItem.  That is, I have no way of telling whether or not the ViewItem exists.  For example, if I pass in "BogusView" as the path to GetViewItem() then it returns a ViewItem that returns "BogusView" as both the Name and FullName.  So, I can't tell that it really didn't find the ViewItem path I was looking for.  Is there any way that it could return a null ViewItem or at least indicate in the names that the path was no good?