Your Digital Media Has Never Looked So Good

Search found 5 matches

by Fenda
Mon Sep 11, 2017 8:28 am
Forum: Roku Developer Program
Topic: setFields() throws Type mismatch for strings
Replies: 6
Views: 3990

Re: setFields() throws Type mismatch for strings

@destruk Thanks for the response, you put me on the right track. These warnings seem to be a result of setting certain field names on a ContentNode . The names  category and seasonNumber both seem to produce errors although they are not mentioned in the documentation as being possible fields. I chan...
by Fenda
Fri Sep 08, 2017 7:54 am
Forum: Roku Developer Program
Topic: setFields() throws Type mismatch for strings
Replies: 6
Views: 3990

Re: setFields() throws Type mismatch for strings

Thanks for the reply, Joe. Unfortunately, switching away from using the variable name  show didn't help. I've also been able to resolve this by using setField (well, the dot notation equivalent shown in my original comment) but for performance reasons, we're supposed to use setFields(). Sounds like ...
by Fenda
Thu Sep 07, 2017 3:48 am
Forum: Roku Developer Program
Topic: setFields() throws Type mismatch for strings
Replies: 6
Views: 3990

setFields() throws Type mismatch for strings

I'm getting a Type mismatch error when using setFields() on a ContentNode that has an interface field type of string . Anyone else seeing this? category = "foo" show = createObject("RoSGNode", "ShowContentNode") show.setFields({   category: category }) print Type(catego...
by Fenda
Wed Jul 19, 2017 1:50 am
Forum: Roku Developer Program
Topic: roSGNode children and findNode
Replies: 7
Views: 1583

Re: roSGNode children and findNode

So, it does seem to work when I place this in main(). The correct object is printed to the telnet logs. Sub Main(args)   m.screen = CreateObject("roSGScreen")   m.screen.setMessagePort(Legacy().getMessagePort())   m.scene = m.screen.CreateScene("MainScene")   m.screen.show()   ob...
by Fenda
Tue Jul 18, 2017 9:51 am
Forum: Roku Developer Program
Topic: roSGNode children and findNode
Replies: 7
Views: 1583

roSGNode children and findNode

I have a fairly large associative array of data that I would like to convert to a Node Tree as recommended by the SDK docs. However, I cannot seem to get roSGNode children and findNode to play nicely together. Below is a snippet I have been using for testing. Any thoughts? obj = createObject("r...