Union Bytes EngineGeneralIdentification

Union Bytes Engine

General
Combination of constantsIdentification
HilfeseitensyntaxModules

Identification

The Union Bytes Engine has three different methodes to identify an element of a specified module. On this page the methods are described using the Node module. It applies to other modules also.

Index

If you create an element in a module it is possible to use a module limited constant in a range between 0 and 65535 as a number for this element.

ID = CreateNode(6)

This code creates a node with the index 6 and returns the unique identification number (ID). You can use this index or the ID as a valid number for other functions like:

FreeNode(6)   ; or
FreeNode(ID)

If you want to get the unique ID of this element you have to use the module specified function for indices to get the ID:

ID = NodeID(6)
ID

It is also possible to create an element in a module without an index identification with the special constant #UBE_ANY.

ID = CreateNode(#UBE_ANY)

This code creates a node with a unique identification number as a valid number for other functions like:

FreeNode(ID)
Name

It may also be useful to identify an element by a name or description. In this case you can assign a string to an element by the creation function or in a definition script.

ID = CreateNode(6, "Alpha")        ; or
ID = CreateNode(#UBE_ANY, "Beta")
Node: Gamma {}

In all these cases you create a node with a additional identification name and you can use the module specified function for names to get the ID:

ID = Node("Gamma")
Union Bytes | Login