How can I retrieve the text for a string for a language which is not the current language of the TsiLang conponent?
There is no parameter to specify for which language the result should be returned:
Eg : the form is using language 1, but I want to retrieve a value for a string in lagguage 2 because I want to sent it as a title to a report that is printed in laguage 2.
Is this possible.
I would suggest to extend the GETTEXT function with an optional parameter to specify the language: eg Gettext (ID, language)
If no language-parameter is specified, the active language of the TsiLang-component should be used.
Greetings
Johan
GETTEXT: retrieving text from strings for non-active languag
GETTEXT: retrieving text from strings for non-active languag
Accowin
The Belgian Accounting program
The Belgian Accounting program
You can use
Use siLang1.Strings as AStrings, string ID as AName and ALang- language number to return.
Code: Select all
function GetStringValue(const AStrings: TStrings; AName: Tstring; ALang: Integer):
Tstring;
Best regards,
Igor Siticov.
Igor Siticov.