GetName

Kategorie: Objekte
Ab Engineversion: 1.0 OC

Beschreibung

Returns the name of a proplist. This is either the contents of the Name property, or if that doesn't exist or the true name was requested, the name of the constant in which it was defined.

Syntax

string GetName(bool truename);

Parameter

truename:
Returns only the constant in which it was defined, ignoring the Name property.

Beispiel

static const Bee = { Buzz = func() {} };
func Poke(proplist animal) {
	if (animal->GetName(true) == "Bee") animal->Buzz();
}
Günther, 2014