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

#### GetResourceStringDefaultValue

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

  The default value is the value of the string that appears in the source code of the programmer, and is compiled into the program.

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

Listing: refex/ex91.pp

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

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