Sign in Join
FPDoc Onlineexperiment

TVersionStringTable.Create constructor

Member of TVersionStringTablepublicIn unit versiontypes

Creates a new string table

Declaration

pascal
constructor Create(const aName: string)

Arguments

aName

The name of the string table

Description

Creates a new string table with the name passed as aName parameter.

aName must be a hex representation of a 4-bytes unsigned number: first 4 ciphers represent the language id, and last 4 the codepage.

Sample code

This code creates a string table for Italian, with unicode codepage.

var
  st : TVersionStringTable;
begin
  //0410 = Italian
  //04B0 = unicode codepage
  st:=TVersionStringTable.Create('041004B0');

  //do something useful...

  st.Free;
end;

Errors

If name is not a valid 8-cipher hexadecimal string, an ENameNotAllowedException exception is raised.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.