Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Channel Surfer

7.1 and custom inheritance

In the 'Creating Custom Components' section of the updated documentation it says:

Calling a function in an extended component with the same name as in the custom component from which it is extended will call the function in the extended component. This allows you to override (or overload) a function name to perform differently depending on the component from which it is called.

However, when I try it, I get:

--- SUB or FUNCTION defined twice. (compile error &had)

The error points to the child component. Is there something special that needs to be done?
0 Kudos
Roku Guru

Re: 7.1 and custom inheritance

can you whip and [ code] [ /code] post a short example?
0 Kudos