My Errors & My Solutions
My Errors & My Solutions - It Could Happen To You
We can learn a lot reading Microsoft standard C/AL code.
HOW TO test if a DateFormula variable is empty?
An example is offered in the Table 5088 Profile Questionnaire Line
TESTFIELD("Starting Date Formula",ZeroDateFormula);
Solution:
Create a Global Variable named like ZeroDateFormula of DataType DateFormula and don’t assign any value to it.
Now you can use this variable to test if a DateFormula variable is empty.
IF PeriodLength = ZeroDateFormula THEN ERROR(Text001);
Did my HOW TO help you? Leave a reply.