SetActiveCollation

Set the active collation for the current thread.

Declaration

Source position: fpwidestring.pp line 11

  function SetActiveCollation(const AName: UnicodeString) : Boolean;
  function SetActiveCollation(const ACollation: PUCA_DataBook) : Boolean;

Description

SetActiveCollation sets the collation used in the current thread of the application. This can be done using the name of the collation (AName) as registered or in the unicodedata unit or using the actual collation data (ACollation).

Errors

If the collation AName was not found, or ACollation is nil, then False is returned.

See also

Name Description
DefaultCollationName Default collation for new threads.
GetActiveCollation Return the currently active collation for the current thread