| Quintiq file version 2.0 | 
| #parent: dpPeriod/datStartOfPeriod | 
| Response OnChanged () id:Response_dpPeriod_datStartOfPeriod_OnChanged | 
| { | 
|   #keys: '[146730.0.1712643073]' | 
|   Body: | 
|   [* | 
|     // Adjust the EndDate accordingly. | 
|     if( ckbEndBy.Checked() ) | 
|     { | 
|       delta := datStartOfPeriod.Date() - vhStartOfPeriod.Data(); | 
|       vhStartOfPeriod.Data( datStartOfPeriod.Date() ); | 
|        | 
|       if( delta <> 0 ) | 
|       { | 
|         datEndOfPeriod.Date( datEndOfPeriod.Date() + delta ); | 
|       } | 
|     } | 
|     else | 
|     { | 
|       // Determine the EndDate based on the number of occurrences.   | 
|       Dialog.SetEndOfPeriod(); | 
|     } | 
|   *] | 
|   CanBindMultiple: false | 
|   DefinitionID: 'Responsedef_GUIDateSelector_OnChanged' | 
| } |