The UniqueChildClass attribute function retrieves the class name of the deepest derived class of the definition class (TCE class) of the object refernce. If the class tree is ambiguous, the function returns an empty string.
Syntax | ||||
UniqueChildClass(Base) | ||||
Return value | ||||
String |
Name of the class or empty string | |||
Parameter | ||||
Use |
Name |
Type |
Passing |
Description |
Optional |
Base |
String |
ByVal |
The class name, where the search is beginning. |
Example:
There is an existing class tree
Further there is an object definition using the class tree:
Cars.UniqueChildClass
Returns an empty string, because there are more than one leafs available beginning with the class Cars
Cars.UniqueChildClass("BMW")
Returns "BMW 2019", because the deepest available class beginning with BMW is BMW 2019.
Cars.UniqueChildClass("Mercedes")
Returns "Mercedes 2019", because the deepest available class beginning with Mercedes is Mercedes 2019.