0

"Set-Date-script" - something goes wrong

Guys, I have i button to set a task to "Done"

 

Deadline := null;
Today := null;
DoneDate := Today;
Status := 3

 

The "DoneDate" field does not set the value to "Today" but returns null. What is wrong with my code?

2 replies

null
    • Ninox partner
    • RoSoft_Steven.1
    • 2 yrs ago
    • Reported - view

    John,

    I suppose Deadline,Today,DoneDate and Status are fields in your table? 

    Else if you use them as variables in your code you must use the 'let' - prefix to assign them. > let Today := today()  > also notice the lowercase in today()

    If not then it should be : DoneDate := today();

    Steven

    • KAXIG ApS
    • John.1
    • 2 yrs ago
    • Reported - view

    Thanks Steven,

    I did try the () bit - but didn't pay attention to case sensitivity - Problem solved 👍

     

    Have a nice one ☀️

    J-)

Content aside

  • 2 yrs agoLast active
  • 2Replies
  • 141Views