Forum Discussion
Komag
11 years agoRoku Guru
Thanks! I appreciate the insights, good to know that calling functions is fast. I'll change my Type() checks.
What about roArray, roBoolean, and Integer and roInteger?
I'm assuming:
getInterface(val, "ifArray") <> invalid
getInterface(val, "ifBoolean") <> invalid
getInterface(val, "ifInt") <> invalid
?
The section about GetInterface is not clear to me yet:
What about roArray, roBoolean, and Integer and roInteger?
I'm assuming:
getInterface(val, "ifArray") <> invalid
getInterface(val, "ifBoolean") <> invalid
getInterface(val, "ifInt") <> invalid
?
The section about GetInterface is not clear to me yet:
7.3 GetInterface(object as Object, ifname as String) as Interface
Each BrightScript Component has one or more interfaces. This function returns a value of type "Interface".
Note that generally BrightScript Components allow you to skip the interface specification. In which case, the appropriate interface within the object is used. This works as long as the function names within the interfaces are unique.