PostgresDAC

TPSQLDatabase.Methods.GetUserNames

Previous Next

Populates a string list with the names of users associated with a specified database component.

Syntax:

procedure GetUserNames(Pattern: String; List: TStrings);

Parameters:

Pattern

Specifies a delimiter string that restricts the users returned to those that match the string. Pattern may include wildcard symbols. Pass an empty Pattern string to match all users not restricted by other criteria.

List

A string list object, created and maintained by the application, in which the users names will be return to.

Description:

Call GetSchemaNames to retrieve a list of the users associated with a given database.