CopyEntity()
Syntax
Result = CopyEntity(#Entity, #NewEntity)Description
Creates a #NewEntity which is the exact copy of the specified #Entity. If #PB_Any is used as '#NewEntity' parameter, the new entity number will be returned as 'Result'.
If the 'Result' is 0, the entity copy has failed. If #NewEntity was already created, it will be automatically freed and replaced by the new one.
Supported OS
All