Rohit
its all in TypInfo
heres a snippet of my code to get a list of props
you can get or set them with Get.. and Set.. procs in TypInfo
uses
TypInfo;
procedure GetPropNames(Instance: TObject; List: TStrings);
var
Props: PPropList;
I: Integer;
begin
{ Allocate memory to hold the property list array of records. }
Props := AllocMem(SizeOf(Props^));
try
{ Get the list of properties. }
GetPropList(Instance.ClassInfo,tkProperties, Props);
{ Loop through the list of properties and add the name and type of each
property to the List}
I := 0;
while (Props^[I]<> nil) and (I < High(Props^)) do begin
List.Add(Props^[I].Name);
Inc(I);
end;
finally
FreeMem(Props);
end; // try
end;
----- Original Message -----
From: "Rohit Gupta" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Thursday, September 26, 2002 8:07 AM
Subject: [DUG]: RTTI
> I cant seem to find it right now....but how do I find out if a control has
a
> particular published property and how do I access it ?
> Regards
>
> Rohit
>
> ======================================================
> ================
> CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New
> Zealand
> PH (649) 489-2280
> FX (649) 489-2290
> email [EMAIL PROTECTED] or [EMAIL PROTECTED]
> ======================================================
> ================
>
>
> --------------------------------------------------------------------------
-
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/