RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSQLConnection.GetPackageNames Method (TStrings)

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

Pascal
procedure GetPackageNames(List: TStrings); overload; deprecated;
procedure GetPackageNames(List: TWideStrings); overload;
C++
__fastcall GetPackageNames(TStrings List);
__fastcall GetPackageNames(TWideStrings List);

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);

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!