Empty Date!!!!

HanenHanen Member Posts: 281
Hello,

I have a field type date and I want to test if this field is empty then ............... else ..........................
how can I do that, I tried with null, isempty, '' no one of those ways works :(

any ideas????

thanks.
Regards

Hanen TALBI

Answers

  • Big_DBig_D Member Posts: 207
    Hi Hanen
    IF MyDate = 0D THEN
       MESSAGE ('I''ve an Empty Date!');
    

    Cheers and good luck
    Big D signing off!
  • HanenHanen Member Posts: 281
    Yesssssssssssssss, it works =D>

    thanks :thumbsup:
    Regards

    Hanen TALBI
  • Big_DBig_D Member Posts: 207
    Hi Hanen

    Always pleased to be of service :P !

    Until next time

    cheers
    Big D signing off!
  • bbrownbbrown Member Posts: 3,268
    Standard NAV Way:
    TESTFIELD(MyDate);
    

    never mind. Read it again. This would not work.
    There are no bugs - only undocumented features.
  • Big_DBig_D Member Posts: 207
    Hi bbrown

    Testfields don't allow an else it just goes straight for the jugular if it is an empty date ](*,) !

    Cheers
    Big D signing off!
  • bbrownbbrown Member Posts: 3,268
    Big D wrote:
    Hi bbrown

    Testfields don't allow an else it just goes straight for the jugular if it is an empty date ](*,) !

    Cheers

    Yes, I re-read it but unfortunately after I had posted. Hey, I'm only on my first cup of coffee. I'm bound to miss a detail or two. :oops:
    There are no bugs - only undocumented features.
  • HanenHanen Member Posts: 281
    It doesn't matter, the first way works perfectly so :wink:
    Regards

    Hanen TALBI
Sign In or Register to comment.