Your Digital Media Has Never Looked So Good

 
lumpenprole
Topic Author
Posts: 15
Joined: Wed Apr 22, 2015 10:37 am

7.1 and custom inheritance

Thu Apr 28, 2016 10:32 am

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?
 
EnTerr
** Valued Community Member **
Posts: 3834
Joined: Sun Jan 02, 2011 2:41 am

Re: 7.1 and custom inheritance

Thu Apr 28, 2016 1:07 pm

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

Who is online

Users browsing this forum: No registered users and 13 guests