Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WDESIGNER and version 24.0
Syntax
Code Block
languagenone
set aClonedObject = anObject.copy()
Semantics

An independent copy of the object will be created.

The Designer distinguishes between referencing and copying object nodes. If you have two objects of same type, for example item1 and item2, you can write set item2 = item1 thus assigning item2 a reference to item1. This means, if you later on modify any attribute values of item1, object item2 will also have these changed values.
Contrary to this situation, if you write set item2 = item1.copy(), changes in the state of item1 will not effect item2 (

This is explained in detail on Object References.

Substitutables anObjectAny object. 
Examples
Code Block
languagenone
set cloneOfA = a.copy();


rp
Panel
titleRelated Pages: