Virtual date table in code

EvREvR Member Posts: 178
Hi all,

It is possible to use the virtual Date table from code?
Using it as a data item in a report or page works, but when I try to access and loop it in code it doesn't.

Date.SETRANGE("Period Type",Date."Period Type"::Month);
Date.SETRANGE("Period Start",StartDate);
Date.SETRANGE("Period End",EndDate);
IF Date.FINDSET THEN
REPEAT
//blah blah
UNTIL Date.NEXT =0;

This returns 0 Date results.

Best Answer

Answers

Sign In or Register to comment.