CURRENTKEY and MultiLanguage

petevans
petevans Member Posts: 78
The object in question has a CASE where it checks the value of CURRENTKEY vs. every possible key, like so:
CASE Rec.CURRENTKEY OF:
  'Code': blabla;
  'Amount': blabla;
  ...

Problem: CURRENTKEY uses MultiLanguage and returns the key name in the current language settings. Thus the application above only works when using english language.

How can you dynamically check which key is currently used on a record in a Multi Language application?
NAVN00b

Answers