Quintiq file version 2.0 
 | 
#parent: #root 
 | 
StaticMethod Participation_PeriodType ( 
 | 
  String periodType_i 
 | 
) as String 
 | 
{ 
 | 
  TextBody: 
 | 
  [* 
 | 
    msg := ""; 
 | 
     
 | 
    periodType := periodType_i.TrimBoth(); 
 | 
     
 | 
    if( periodType = "" ) 
 | 
    { 
 | 
      msg := "PeriodType is missing"; 
 | 
    } 
 | 
    else if( periodType <> LibCal_RecurrencePeriod::TYPE_WITHOUTEND()      and 
 | 
             periodType <> LibCal_RecurrencePeriod::TYPE_NROFOCCURRENCES() and 
 | 
             periodType <> LibCal_RecurrencePeriod::TYPE_WITHENDDATE() ) 
 | 
    { 
 | 
      msg := "PeriodType '" + periodType_i + "' is invalid"; 
 | 
    } 
 | 
     
 | 
    return msg; 
 | 
  *] 
 | 
  InterfaceProperties { Accessibility: 'Module' } 
 | 
} 
 |