Txt-Name is unique

From Vectorlab
Jump to: navigation, search


Function to check if a name is unique. The name unicity is here absolute: the proposed name doesn't exist, both not in objects and in layers. By Orso B. Schmid


{ Orso *********************************************** }
{ check everywhere for name unicity: nameList and LayerList }
FUNCTION T_NameIsUnique(str: STRING): BOOLEAN;
	BEGIN
		T_NameIsUnique := ((getObject(str) = NIL) & (GetLayerByName(str) = NIL));
	END;