Call script from custom class - v8.0.1

Hello Experts

I have a custom class, and in the new operator I am calling an existing script to do some calculations. However, when I compile I get the following error:

Reference to a non-shared member requires an object reference

I guess this make sense since all the customer scripts reside in a separate class.

Question is: How can I access the functions (i.e. scripts) from within my custom class?

Thanks

Kin

Parents Reply
  • Sure 

    I have created a class to model some data. This is my custom class which I am using to store some deserialised JSON data.

    Now, within this class I have a property which can be calculated (like a template) by calling an existing script. For instance, lets say I have 2 properties in my class, name and email. I set name, and email is set by calling an existing script CCC_CalculateEmail and passing name into it. 

    Hope that makes sense?

Children