[Overview][Constants][Types][Procedures and functions] |
Return name of resource string.
Source position: objpas.pp line 81
function GetResourceStringName( |
TableIndex: LongInt; |
StringIndex: LongInt |
):Ansistring; |
GetResourceStringNamereturns the name of the resourcestring in table TableIndexwith index StringIndex. The name of the string is always the unit name in which the string was declared, followed by a period and the name of the constant, all in lowercase.
If a unit MyUnitdeclares a resourcestring MyTitlethen the name returned will be myunit.mytitle. A resourcestring in the program file will have the name of the program prepended.
The name returned by this function is also the name that is stored in the resourcestring file generated by the compiler.
Strictly speaking, this information isn't necessary for the functioning of the program, it is provided only as a means to easier translation of strings.
If either TableIndexor StringIndexis zero, an empty string is returned.
|
Set values of all resource strings. |
|
|
Return default (original) value of resourcestring |
|
|
Return hash value of resource string |
|
|
Return name of resource string. |
|
|
Return number of resource string tables |
|
|
Return number of resource strins in table |
Program Example92; { Program to demonstrate the GetResourceStringName function. } {$Mode Delphi} ResourceString First = 'First string'; Second = 'Second String'; Var I,J : Longint; begin { Print names of all resourcestrings } For I:=0 to ResourceStringTableCount-1 do For J:=0 to ResourceStringCount(i)-1 do Writeln (I,',',J,' : ',GetResourceStringName(I,J)); end.