Data.SqlExpr.TSQLConnection.GetPackageNames

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Data.SqlExpr.pas
Data.SqlExpr.hpp
Unit: Data.SqlExpr
Parent: TSQLConnection

Delphi

procedure GetPackageNames(List: TStrings); overload;

C++

void __fastcall GetPackageNames(System::Classes::TStrings* List)/* overload */;

Description

Populates a string list with the names of all packages defined on the server.

Call GetPackageNames to retrieve a list of packages defined on the associated database. This method is only relevant to Oracle servers.

List is a TStrings descendant that receives the package names. Any existing strings are deleted from the list before GetPackageNames adds the names of all packages that the database defines.

The following example fills a list box with the names of all packages defined by the database:



SQLConnection1.GetPackageNames(ListBox1.Items);



SQLConnection1->GetPackageNames(ListBox1->Items);



See Also