RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSQLConnection.GetPackageNames Method

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

Pascal
procedure GetPackageNames(List: TWideStrings); overload;
C++
__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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!