Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Implementing Reflection in Delphi

Status
Not open for further replies.

Farhan123

Programmer
Jul 17, 2000
6
PK
Does anyone know as how to implement reflection in delphi
 
I believe that RTTI (run time type information) is the delphi equivalent.

Brian
"There are 2 kinds of people in the world, those that divide people into two groups and those that don't. I belong to the second group." - tag line I stole
 
Well with reflection you can find out information about any
object, including its methods and fields and load the class at runtime, even if the type of the object is not known at compile time.Like in java you can load a class using Class.forName('ClassName') and get all its methods with Method m [] = cl.getMethods( ).
 
That sounds like RTTI allright ;-)
The answer is in BBegley's reply, IMHO. Go for the helpfiles!

Thnx
TonHu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top