Data.SqlExpr.TSQLConnection.GetPackageNames

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure GetPackageNames(List: TStrings); overload;

C++

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

Properties

Type Visibility Source Unit Parent
procedure
function
public
Data.SqlExpr.pas
Data.SqlExpr.hpp
Data.SqlExpr TSQLConnection

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