
hugetv
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2015
04:38 PM
help this error 2
this code corect
if bAsListScreen = "0" or bAsListScreen = 0
if bAsListScreen = "0" or bAsListScreen = 0

Our system http://www.rokumanager.com
2 REPLIES 2

Komag
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2015
06:20 PM
Re: help this error 2
You can't check against two different Types like that. If the variable is an Integer (which it is in this case), checking which String it is will simply fail with a Type mismatch error. You can check first whether it is an Integer or a String, then check the value after that of only that Type. Better yet, whatever is feeding bAsListScreen into the function, have it always feed a String (or always an Integer), by doing conversion if necessary.

hugetv
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2015
01:33 PM
Re: help this error 2
ok this solution
Our system http://www.rokumanager.com