Replace an already registered function

Is it possible to replace a function?

Background: The compiler registers some functions (e.g. “LowerCase”) that use the data type “AnyString”. This datatype causes problems when it ist assigned to a “Variant” variable.

I would like to register the standard “LowerCase” function from Delphi (i am registering ist with “AdsDelphiFuntion” but the compiler still uses the innternal added function that works with “AnyString”.

The (very) last workaround would be to modify the compiler unit and remove the function “LowerCase” from there.

Thanks in advance,


TPSPascalCompiler holds all internal data (like FRegProcs) in protected section, so you can create descendant of this class and update declaration for LowerCase method.