1
2
3
4
5
6
7
8
9
10
11
12
13
14
| Quintiq file version 2.0
| #parent: #root
| Method Add (LibOpt_ScopeElement element) as Boolean
| {
| Description:
| [*
| Add the scope element to the scope.
| It is not possible to add the same scope element twice, so if you accidentally do so, nothing happens.
| One exception: if the scope element was assigned to a `LibOpt_Group` inside the scope, the association will be removed if this method is called. Moreover, the comment will be unset.
|
| 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 ), '' );"
| }
|
|