Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 13421, MethodAddress. How to call a Method by Name.

by Thomas Quester Email: tquester@joice.net


Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 2.0  to 4.0 1112 downloads
Copyright: No significant restrictions


Size: 2,341 bytes
Updated on Thu, 10 Jun 1999 00:00:00 GMT
Originally uploaded on Thu, 10 Jun 1999 00:00:00 GMT
SHA1 Hash: 204F3958B364E65F7497388A07703CFD491EB5F0
MD5 Hash: 0C46581FAFA4B8FA991D30ACA6924DED

    Explore the files in this upload

Description
This example shows how to use MethodAddress to dynamically call a function or procedure.

From any given class, it is possible to call a function by name.

function TObject.MethodAddress(s : string) : TPointer;

returns a pointer to a method that may be called. Some magic is needed to actually call the function.


   Latest Comments  View All Add New

Move mouse over comment to see the full text

Server Response from: ETNACDC03