Problem with CALCDATE function

poppinspoppins Member Posts: 647
edited 2012-07-18 in NAV Three Tier
Hi everyone,

I am having some trouble with the following piece of code:
"Date1" := CALCDATE('FM',"Date1");

The problem is with the 'FM' parameter which references the end of the month...
The guy who wrote the code is French....and it generates errors when I work with the English language....so does someone knows the equivalent of 'FM' in English???

Answers

  • stevedivimaststevedivimast Member Posts: 39
    Use
    "Date1" := CALCDATE('<CM>',"Date1");

    '<CM>' instead of 'FM'

    This is language indipendent
  • vijay_gvijay_g Member Posts: 884
    The angle brackets (< >) specify that the expression is not translated, regardless of the application language. check developer help by pressing F1.
  • poppinspoppins Member Posts: 647
    Thanks a lot Vijay!!!!

    I've already tried with 'CM' and the error persisted....You really saved my life !!!!
  • vijay_gvijay_g Member Posts: 884
    Your most welcome.
Sign In or Register to comment.