JCL Help:SetClassParent

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Modifies the class parent for the given class.


Pascal

 procedure SetClassParent(AClass: TClass; NewClassParent: TClass);


Parameters

Parameters Description
AClass: TClass The class whose parent to change.
NewClassParent: TClass The new parent for AClass.


Description

Changes the parent of AClass to become NewClassParent. Do NOT use this function. There should be no need to use this function unless you are implementing a very dirty hack. This procedure changes the executable code (with the risk of completly destroying your application) and uses WriteProcessMemory for this. The function is multiprocessor safe.


See Also

GetClassParent


About

Unit

JclSysUtils


Donator

Python


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page