Scalabium Software

SMExport advertising
Knowledge for your independence'.
Home Delphi and C++Builder tips


#74: How can I receive the list of published properties of component (part 2)?

Yesterday I posted the tip about list of published properties. Today I found the second method to do a same but this method is easy:

var
  i, j: Integer;
  PropList: TPropList;
begin
  GetPropList(Obj.ClassInfo, TypeKinds, @PropList);
  j := High(PropList);
  i := 0;
  while (i < j) and Assigned(PropList[i]) do
  begin
    lbInspector.Items[i] := PropList[i].Name + ': ' + PropList[i].PropType^.Name;
    Inc(i)
  end
end;

where
TypeKinds := tkProperties
or
TypeKinds := tkMethods


Published: April 20, 2000

See also
 
ABA Picture Convert
Paradox Password Recovery
Protected Storage Viewer
ABA Spreadsheet Convert
Word Web-stream
ABA Database Convert
Viewer for MS Outlook Messages
Paradox ActiveX
SMDBGrid
Paradox to MS Access converter
 
 


Contact to webmaster

 

Borland Software Code Gear Scalabium Delphi tips

Copyright© 1998-2024, Scalabium Software. All rights reserved.
webmaster@scalabium.com

SMReport Autogenerated