陈清红
2025-04-14 880f3c0257eeb8c37761d484258fdd102a369a19
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Quintiq file version 2.0
#parent: #root
Method Add (LibOpt_ScopeElement element, String comment) as Boolean
{
  Description:
  [*
    Add the `LibOpt_ScopeElement` to the `LibOpt_Scope` with the associated comment string.
    
    If the scope element was already in scope, it is not added another time. The comment will change if this is different.
    If the scope element was assigned to a `LibOpt_Group` inside the scope, the association will be removed if this method is called.
    
    The boolean returned signals whether the scope element was added or not. If the scope element was already in scope, the method returns `false`, even if the comment or the `LibOpt_Group` changes.
  *]
  TextBody: 'return this.Add( element, null( LibOpt_Group ), comment );'
}