Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method GotoPrevious (LibWiz_InitElement current) as LibWiz_InitElement 
 | 
{ 
 | 
  TextBody: 
 | 
  [* 
 | 
    assert( current.Parent() = this, "Error Inconsistent LibWiz_InitElement tree" ); 
 | 
     
 | 
    previous := null( LibWiz_InitElement ); 
 | 
    if( isnull( current.Previous() ) ) 
 | 
    { 
 | 
      previous := this.GotoPrevious(); 
 | 
    } 
 | 
    else if( current.Previous().IsEnabled() ) 
 | 
    { 
 | 
      previous := current.Previous().MakeLastChildCurrent(); 
 | 
    } 
 | 
    else 
 | 
    { 
 | 
      previous := this.GotoPrevious( current.Previous() ); 
 | 
    } 
 | 
     
 | 
    return previous; 
 | 
  *] 
 | 
} 
 |