Unit 'versiontypes' Package
[Overview][Resource strings][Types][Classes][Index] [#fcl-res]

TVersionStringTable.Create

Creates a new string table

Declaration

Source position: versiontypes.pp line 96

public constructor TVersionStringTable.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

TVersionStringTable.Name

  

The name of the string table


Documentation generated on: Nov 22 2024