CurrentEntity()

Returns the name, alias or entity type of the current entity from the current context.

CurrentEntity() returns the name, alias or entity type of the current entity from the current context.

Syntax

CurrentEntity(optional string EntityProperty) as String

CurrentEntity() returns the name of the current entity from the current context. The optional EntityProperty returns alternate information related to the current entity.

  • EntityProperty = "Alias" returns the alias of the current entity.
  • EntityProperty = "Type" returns the entity type of the current entity.
EntityProperty is not case sensitive.


Example

For entity BC012345 with alias "Well HZ 10-15" and of entity type "Well"

CurrentEntity() returns BC012345

CurrentEntity("Alias") returns Well HZ 10-15

CurrentEntity("Type") returns Well