Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.53 KB

TVIBinResource-AddOrUpdateString.md

File metadata and controls

45 lines (30 loc) · 1.53 KB

AddOrUpdateString method

Project: Binary Version Information Manipulation Units.

Unit: DelphiDabbler.Lib.VIBin.Resource.

Class: TVIBinResource

Applies to: ~>1.0

function AddOrUpdateString(TableIdx: Integer; const Name, Value: string):
  Integer;

Description

Checks if a named string information item exists in a string table. If the string information name exists within the table then its value is updated. Otherwise a new string information item is added to the string table.

Parameters:

  • TableIdx -- Index of the string table within the string table list in which the string information item is to be added or updated.
  • Name -- Name of the string information item.
  • Value -- Value to be assigned to the named string information item.

Returns:

  • Index of the string information item in its string table.

Exception:

  • EVIBinResource is raised TableIdx is out of bounds.

See Also