Layers do not have an ID. Please explain your question better. Perhaps you mean ObjID?
function GetObjFromID(oID: integer): integer;
Description
GetObjFromID finds first object with the specified ID.
IDs are stored in ObjID.
The returned value is the handle of the object.
Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development