| Quintiq file version 2.0 | 
| #parent: #root | 
| Method SetMonthlyPattern ( | 
|   Date date_i | 
| ) id:Method_LibCal_dlgEvent_SetMonthlyPattern | 
| { | 
|   #keys: '[131094.0.2098818407]' | 
|   Body: | 
|   [* | 
|     weekOfMonth := ""; | 
|     dayOfWeek   := ""  | 
|     this.GetWeekOfMonthAndDayOfWeek( date_i, weekOfMonth, dayOfWeek );  // output-arguments | 
|      | 
|     // Set week of month. | 
|     ssMonthlyPatternWeekOfMonth.Strings( Translations::Pattern_WeekOfMonth() ); | 
|     ssMonthlyPatternWeekOfMonth.Text( weekOfMonth ); | 
|      | 
|     // Set day of week. | 
|     ssMonthlyPatternDayOfWeek.Strings( //Translations::Pattern_DayKind() + ssMonthlyPatternDayOfWeek.RowSeparator() +  To Do | 
|                                        Translations::Pattern_Days() ); | 
|     ssMonthlyPatternDayOfWeek.Text( dayOfWeek ); | 
|      | 
|     // BUG: referencing the DropDownStringLists in methods GetDateOfFirstRecurrence and GetDateOfNextOccurrence | 
|     //      results in an error in the TCE. | 
|     // As a WORKAROUND, set the values also in a hidden label, and use that in those methods. | 
|     lblMonthlyPatternWeekOfMonth.Text( weekOfMonth ); | 
|     lblMonthlyPatternDayOfWeek  .Text( dayOfWeek   ); | 
|   *] | 
| } |