jnicholas
11 years agoVisitor
Checking existence of function
I was testing my channel on an older Roku running Firmware 3.1 and got this error
Member function not found in BrightScript Component or interface. (runtime error &hf4) in ...G56RN/pkg:/source/appMain.brs(98)
098: busydialog.EnableOverlay(true)
which leads to two questions.
1) Is there a way to check if an function is available before calling it? For example in javascript you could do this
if (busydialog.EnableOverlay) {
busydialog.EnableOverlay(true)
}
2) according to the docs (http://sdkdocs.roku.com/display/sdkdoc/ifMessageDialog) the EnableOverlay is listed as available since version 2.7. So why does it fail on a 3.1 box?
Member function not found in BrightScript Component or interface. (runtime error &hf4) in ...G56RN/pkg:/source/appMain.brs(98)
098: busydialog.EnableOverlay(true)
which leads to two questions.
1) Is there a way to check if an function is available before calling it? For example in javascript you could do this
if (busydialog.EnableOverlay) {
busydialog.EnableOverlay(true)
}
2) according to the docs (http://sdkdocs.roku.com/display/sdkdoc/ifMessageDialog) the EnableOverlay is listed as available since version 2.7. So why does it fail on a 3.1 box?