Hopefully a quick question. I'm trying to learn about the roAssociativeArray, and created the following, but am getting an error "
Member function not found in BrightScript Component or interface."
Why doesn't this work ( I copied basic syntax from a previous demo )?
Sub Main()
Web = SetAssociativeArray()
Web.ThisIsOne()
End Sub
Function SetAssociativeArray() As Object
Print "Set Array"
Web = CreateObject("roAssociativeArray")
Web.ThisIsOne = One
Web.ThisIsTwo = Two
End Function
Sub One()
Print "Hit One"
End Sub
Sub Two()
Print "Hit Two"
End Sub
A demo project does something similar, and it compiles, so not sure what my issue is? Any advice?
Thanks
Bud