Vote UpVote

Introduction to TValue

Rob's Technology Corner – TValue is a new record structure defined in Rtti.pas, it provides the ability to store the value, and type information of an instance of any type. This can be seen in the following code.For example, in the following program, you can see that the TypeInfo property ona TValue is the same as the what the TypeInfo() function would return for that type. program Project10;{$APPTYPE CONSOLE}uses SysUtils, Rtti;var v : TValue; i : Integer;begin i := 10; v := I; Writeln('Address of TypeInfo on TValue :', IntToStr(Integer(v.TypeInfo))); Writeln('Address of TypeInfo on Integer:', ...
Favorite? Off-Topic? Robert Love @ 2009-09-15 02:02


Visits: 671
Votes: 4
Favorites: 1
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Charles Ardour
Neville Cook
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)