Skip to content

GetConstantValue - missing constants #28

@ckrg11

Description

@ckrg11

Hi, missing constants are annoying.
But not being able to figure out which one is missing is even more annoying.
That's why I made this adjustment in DKLang.pas :

class function TDKLanguageManager.GetConstantValue(const wsName: UnicodeString): UnicodeString;
var
l_Value : PDKLang_Constant;
begin
FSynchronizer.BeginRead;
try
// Result := FConstants.GetValues(wsName); // original code
if FConstants.TryGetValue(wsName, l_Value) // my replacement
then Result := l_Value.wsValue
else Result := '"' + wsName + '"';
finally
FSynchronizer.EndRead;
end;
end;

Maybe this may usefull for others also.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions