INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: How to tell if ViewItem exists? GetViewItem() always "works"  (Read 2151 times)

cncb

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3105
How to tell if ViewItem exists? GetViewItem() always "works"
« 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?
Logged
-Craig    MO 4Media remote and player:  Android/TV/Auto | iOS | Windows 10/UWP
Pages: [1]   Go Up