Delphi .NET (2) Database (71) Delphi IDE (89) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (280)
Exchange Links About this site Links to us 
|
Expert enumerates all installed components
This article has not been rated yet. After reading, feel free to leave comments and rate it.
Question:
How can my IDE Add-In expert enumerate all installed components?
Answer:
Borland's interface for IDE services provides the function GetComponentName() which takes two arguments - the index of the package and the index of the component within a package. It can be used as shown below.  | |  | | library IDEAddInExpert;
uses
ToolsApi;
procedure EnumerateInstalledComponents;
var
a,
i: integer;
begin
with BorlandIDEServices as IOTAPackageServices do
begin
for a := 0 to GetPackageCount-1 do
begin
for i := 0 to GetComponentCount(a)-1 do
begin
sName := GetComponentName(a, i); end;
end;
end;
end;
end. | |  | |  | You don't like the formatting? Check out SourceCoder then!
Comments:
|