1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method GetAnchorOrCreate (LibOpt_Run run) as LibOpt_Anchor 
 |  { 
 |    Description: 
 |    [* 
 |      Get the `LibOpt_Anchor` object belonging to the `LibOpt_ScopeElement` and the given `LibOpt_Run`, if it exists. 
 |      If not, create it. 
 |    *] 
 |    TextBody: 
 |    [* 
 |      result := this.GetAnchor( run ); 
 |       
 |      if( isnull( result ) ) 
 |      { 
 |        result := this.Anchor( relnew, 
 |                               Run := run, 
 |                               ScopeElementID := this.InternalIdentifier(), 
 |                               RunID := run.InternalIdentifier() ); 
 |      } 
 |       
 |      return result; 
 |    *] 
 |  } 
 |  
  |