Repeating To-Do Item That Has Been Checked-Off Data Record

Offset   Name                     Type           Contents 
-------  -----------------------  -------------  --------
***Standard Record Header (first 6 bytes--add six to all offsets below)*** 
0        Item Length              int 
2        Offset to Category       int 
4        Offset to Location       int            Offset to end of Category field 
6        Offset to Repeat         int            Offset to Repeat Factor 
8        Note record#             int            Record Number or -1 
10       Prev Record# Today Link  int 
12       Next Record# Today Link  int 
14       ToDoState                unsigned char  Flags*
15       Start (Origination) Date: 
          Year                    unsigned char  Year# since 1900 (0-199) 
          Month                   unsigned char  Month# (0-11) 
          Day                     unsigned char  Day# (0-30) 
18       Priority                 int             
20       Due Date                 unsigned int   #days after origination date
                                                 (0-65535)***
22       Check-Off Date: 
          Year                    unsigned char  Year# since 1900 (0-199) 
          Month                   unsigned char  Month# (0-11) 
          Day                     unsigned char  Day# (0-30) 
25 --unused-- char 0 
26       RepeatType               char           **
27       Description Text         ASCIIZ 
27+....  Category Text            ASCIIZ 
27+....  Location Text            ASCIIZ         0 
27+....  Repeat Factor: 
          Frequency               char            
          Days                    int             
          Months                  int             
32+....  Duration Start Date: 
          Year                    unsigned char   
          Month                   unsigned char   
          Day                     unsigned char   
35+....  Duration End Date: 
          Year                    unsigned char   
          Month                   unsigned char   
          Day                     unsigned char  
38+....  #Deleted ToDos           char           0 
39+....  Prev ToDo Link           int            Record# of Prev Checked off ToDo 
41+....  Next ToDo Link           int            Record# of Next Checked off ToDo 
43+....  Record# of To-Do Spawner int 

* Bit 1 set -> Checked Off
  Bit 2 set -> Carry Forward Enabled
  Bit 4 set -> To-do Item
  Bit 6 set -> Stub for a repeating completed to-do

**2-> Daily Repeat
  4-> Weekly Repeat
  8-> Monthly Repeat
 16-> Yearly Repeat
 32-> Custom Repeat

***Stored DueDate=0 -> No specified due date
   Stored DueDate#0 -> SpecifiedDueDate = StartDate + DueDate-1