OCLOperators addReturnIndexOf0

The AddReturnIndexOf0 works like a normal Add - but returns the zero based position of the object added.

This is particularly useful when dealing with innerlink objects - you add an object of Class2 to Class1.Class2s - and that results in a link object creation of Class3 - you can access the object of Class3 with an expression like:

let x=self.Class2s.addReturnIndexOf0(Class2.Create) in
(
  self.Class3.at0(x).Attribute1:='Yes'
)
2022-10-26 11h56 42.png
This page was edited 82 days ago on 02/10/2024. What links here