Atozed Forums
IWResourceStrings - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: IWResourceStrings (/thread-1508.html)



IWResourceStrings - Lorbass - 01-28-2020

Hi @all,

this question has probably already been asked. But I didn't find a solution.
How can the Texts from "IWResourceStrings" be modified?
Thanks for appropriate advice!


RE: IWResourceStrings - Alexandre Machado - 01-31-2020

Each resource string has an associated variable, which is initialized with the resource string value. But the variable can be modified at runtime.

Example:

resourcestring
PermissionDenied = 'Permission denied';

var
RSPermissionDenied: string;


At startup, RSPermissionDenied is initialized receiving the value in PermissionDenied.

Best way to change it is in ServerController.OnConfig event.


RE: IWResourceStrings - Lorbass - 01-31-2020

Thank you very much. Sometimes it can be so simple … ;-)