Register a type alias?

Hi,

the name of a class that we use in our scripts had changed (different classname now).

Since we do not want to change all scripts: Is it possible to register an alias for a class?

The script would use TOriginalClass and the “real” class used would be TRenamedClass.

If we just use another name in “AddClassN” for our registered class it does not work because it cannot be compiled.

Thnaks in advance,
Ralf

You can just use AddType?

I have used “AddTypeCopyN” and it looks like it works (had not known this method before)

1 Like