CASE "Country/Region Code" OF 'GB':CountryName :=''; 'SE':CountryName :='SWEDEN'; 'AE':CountryName :='United Arab Emirates'; 'AR':CountryName :='Argentina'; ELSE CountryName :='Not Working'; END;
VAR Country : Record 9; ... IF Country.GET("Country/Region Code") THEN CountryName := Country.Name ELSE CountryName := 'Failure of address';
CASE a_variable OF something1a, something1b : do something 1 something2a, something2b : do something 2 ELSE do somethng 3 ENDis equivalent to
IF (a_variable = something1a) OR (a_variable = something1b) THEN do something 1 ELSE IF (a_variable = something2a) OR (a_variable = something2b) THEN do something 2 ELSE do something 3
CASE a_variable OF a_variable, 'GB': do something 1 ...
IF (a_variable = a_variable) OR (a_variable = 'GB') THEN do something 1 ELSE ...
Answers
You know that table 9 is used to retrieve country names according to country codes?
Now all I need to do is work out how to look up use table nine to give me the country name!
Thanks!
As Richard Branson said - if someone gives you a fantastic opportunity that you are not sure you can do, say yes and learn to do it later! (In my case thats on the job!)
Thanks in advance!
RIS Plus, LLC
is equivalent to
What you have done is:
which logically translates to
Can you see now why it was always picking the first line?
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03