Difference between revisions of "Extensions.DataType.StructureCopy"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
== OTL Syntax == | == OTL Syntax == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | /// Local Declarations | |
+ | DatatypeSignature StructureVariable; | ||
+ | /// Flow | ||
+ | StructureVariable = DataType.StructureCopy(StructureTerm); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 23: | Line 26: | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
package DataType.DatatypeSignature DatatypeSignature1(Boolean DatatypeElement1 = true, Integer DatatypeElement2 = 12); | package DataType.DatatypeSignature DatatypeSignature1(Boolean DatatypeElement1 = true, Integer DatatypeElement2 = 12); | ||
+ | |||
+ | /// Global Declarations | ||
+ | |||
public procedure main() | public procedure main() | ||
{ | { | ||
− | + | /// Local Declarations | |
− | + | ||
+ | DatatypeSignature1 structure1; | ||
+ | DatatypeSignature1 structure2; | ||
+ | |||
+ | /// Flow | ||
− | + | structure2 = DataType.CopyStructure(structure1); | |
} | } | ||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 09:59, 23 October 2018
Contents
Classification
Name | StructureCopy |
Short Description | Creates a deep copy of a specified structure. |
Class | Term |
Extension | OTX DataTypes extension |
Group | StructureCopy related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
/// Local Declarations
DatatypeSignature StructureVariable;
/// Flow
StructureVariable = DataType.StructureCopy(StructureTerm);
Description
StructureCopy is a term that creates a deep copy of a specified structure.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Structure | Returns the copy of the specified structure. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
OtherStructure | Structure | Term | - | [1] | The structure to be copied. |
OTL Examples
package DataType.DatatypeSignature DatatypeSignature1(Boolean DatatypeElement1 = true, Integer DatatypeElement2 = 12);
/// Global Declarations
public procedure main()
{
/// Local Declarations
DatatypeSignature1 structure1;
DatatypeSignature1 structure2;
/// Flow
structure2 = DataType.CopyStructure(structure1);
}
See also
EnumerationContainsName
EnumerationContainsValue
EnumerationGetEntryList
GetEnumerationByName
GetEnumerationByValue