date

Horse06
Horse06 Member Posts: 496
how to write if date is null
date :=' ' is not right. what's the correct one. Thanks!

Comments

  • David_Cox
    David_Cox Member Posts: 509
    Horse06 wrote:
    how to write if date is null
    date :=' ' is not right. what's the correct one. Thanks!

    Date := 0D;
    Time := 0T;
    Analyst Developer with over 17 years Navision, Contract Status - Busy
    Mobile: +44(0)7854 842801
    Email: david.cox@adeptris.com
    Twitter: https://twitter.com/Adeptris
    Website: http://www.adeptris.com
  • kriki
    kriki Member, Moderator Posts: 9,135
    And in a filter put by the user on a field : ''
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • MissesMagic
    MissesMagic Member Posts: 39
    David Cox wrote:
    Date := 0D;
    Time := 0T;

    but please remember that this only works with the correct language!

    If I´m not wrong, put the "0D" in brackets: "<0D>" to ignor users language!
    (correct me - if this it totally wrong! :D )
  • kine
    kine Member Posts: 12,562
    David Cox wrote:
    Date := 0D;
    Time := 0T;

    but please remember that this only works with the correct language!

    If I´m not wrong, put the "0D" in brackets: "<0D>" to ignor users language!
    (correct me - if this it totally wrong! :D )

    No, this issue is just for CALCDATE function. 0D and 0T as constant is international.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • kriki
    kriki Member, Moderator Posts: 9,135
    And also '' is international.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • MissesMagic
    MissesMagic Member Posts: 39
    :D Why do you blame me :D