How can I get the list of available providers at the runtime?
Regards
Jens
Howto get the list of providers at runtime
Re: Howto get the list of providers at runtime
Hello
To get list of available providers names, you should execute the following code:
Get the UniProvider instance by name you can with using the following code:
To get list of available providers names, you should execute the following code:
Code: Select all
uses
UniProvider;
var
UniProviderNames: TStringList;
begin
UniProviderNames := TStringList.Create;
try
UniProviders.GetProviderNames(UniProviderNames);
finally
UniProviderNames.Free;
end;
end;Code: Select all
UniProvider := UniProviders.GetProvider(UniProviderName);