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.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
lumpenprole
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
1 REPLY 1
EnTerr
Roku Guru

Re: 7.1 and custom inheritance

can you whip and [ code] [ /code] post a short example?
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.