Txt-Name is unique in layers

From Vectorlab
Jump to: navigation, search

Function to check if a name is unique among layers. The proposed name could still exist among other objects (but obviously there won't be collision). By Orso B. Schmid

{ Orso *********************************************** }
{ check LayerList for name unicity }
FUNCTION T_NameUniqueLayers(str: STRING): BOOLEAN;
		T_NameUniqueLayers := ((GetLayerByName(str) = NIL));