[next] [prev] [prev-tail] [tail] [up]

#### GetResourceStringCurrentValue

Declaration:
  Function GetResourceStringCurrentValue(TableIndex,StringIndex : Longint) : AnsiString;
Description:
  GetResourceStringCurrentValue returns the current value of the resourcestring in table TableIndex with index StringIndex.

  The current value depends on the system of internationalization that was used, and which language is selected when the program is executed.

Errors:
  If either TableIndex or StringIndex are out of range, then a empty string is returned.
See also:
  SetResourceStrings (612), GetResourceStringDefaultValue (603), GetResourceStringHash (604), GetResourceStringName (605), ResourceStringTableCount (611), ResourceStringCount (610)

Listing: refex/ex90.pp

Program Example90;
{ Program to demonstrate the GetResourceStringCurrentValue function. }
{$Mode Delphi}
ResourceString
First = 'First string';
Second = 'Second String';
Var I,J : Longint;
begin
{ Print current values of all resourcestrings }
For I:=0 to ResourceStringTableCount-1 do
For J:=0 to ResourceStringCount(i)-1 do
Writeln (I,',',J,' : ',GetResourceStringCurrentValue(I,J));
end.

[next] [prev] [prev-tail] [front] [up]