Forum Discussion

EnTerr's avatar
EnTerr
Roku Guru
11 years ago

roXmlList implements ifArray, apparently (+ a mystery)

Just discovered that roXmlList supports ifArray methods:
BrightScript Debugger> rXL = createObject("roXmlList")
BrightScript Debugger> rXL.push("something")
BrightScript Debugger> ? type(rXL), rXL.count(), rXL[0]
roXMLList 1 something
BrightScript Debugger> ? getInterface(rXL, "ifArray")
<Interface: ifArray>

It is undocumented as of now. The significance is that array operations can be used to go over a roXmlList - and notably, .count().
No RepliesBe the first to reply