[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Expected behavior of Class.Load in components


Le 02/05/2025 à 00:38, Carlos Prieto a écrit :
Hi!

I created a component with a function F that uses the Class.Load function, with an argument passed to the function F. Inside the project of the component, it works as expected with any class defined within that project.

However, when I pack the component and include it in another project by Project > Properties > Components, the function raises an error

"Impossible to load class 'X': File or directory does not exist."

if X is a class defined in the project.

Is this the expected behavior?
How could I load such a class from the component?

Thanks in advance.



Class.Load() can only load a class from the component where it is called.

Why do you want to ask a component to load a class from the main project? How can it be useful?

--
Benoît Minisini.


Follow-Ups:
Re: Expected behavior of Class.Load in componentsCarlos Prieto López <caprilo@xxxxxxxx>
References:
Expected behavior of Class.Load in componentsCarlos Prieto <caprilo@xxxxxxxx>