OCLOperators OnCreate
(Created blank page)
 
No edit summary
Line 1: Line 1:
OnCreate is called aften a new object has been created.


It's very much like a .Net constructor for OCL.
You can use self.base.OnCreate to call the superclass's OnCreate as you would in another language.
==== Example ====
In the method body for OnCreate set this ocl:
CreateTime:=DateTime.Now;
self.Guid.newGuid()
See more: [[Acting on object changes]]

Revision as of 09:43, 18 November 2019

OnCreate is called aften a new object has been created.

It's very much like a .Net constructor for OCL.

You can use self.base.OnCreate to call the superclass's OnCreate as you would in another language.

Example

In the method body for OnCreate set this ocl:

CreateTime:=DateTime.Now; 
self.Guid.newGuid() 

See more: Acting on object changes

This page was edited 70 days ago on 02/10/2024. What links here