EPUB | CHM | PDF

TPSQLDatabase.Methods.GetCharSets

Top Previous Next

Returns list of charsets available for client encoding.

Syntax:

procedure GetCharsets(List: TStrings);

Parameters:

List

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

Description:

Call to GetCharSets to obtain available charsets list available for client encoding. Values are case-insensitive. If List.Sorted property is False, strings are sorted by servers internal representation.

Example:

Example fills Listbox's items with available charsets.

procedure TForm1.Button1Click(Sender: TObject);
begin
 PSQLDatabase1.GetCharsets(Listbox1.Items);
end;

See also: CharSet property