Assembly Posted September 3, 2012 Share Posted September 3, 2012 How do I get the SheetTitle of presentation layer?. GetLName returns the sheet number. I don't see a function that returns this. The procedure below get the layer name and insert it as text. PROCEDURE LayerNamer; VAR; ghObject,ghRecord,ghWall:HANDLE; gObjectName:STRING; gBoolean:BOOLEAN; BEGIN gBoolean:=GetCustomObjectInfo(gObjectName,ghObject,ghRecord,ghWall); CreateText(GetLName(GetLayer(ghObject))); END; RUn(LayerNamer); Quote Link to comment
MullinRJ Posted September 3, 2012 Share Posted September 3, 2012 Try: CreateText(GetObjectVariableString(GetLayer(ghObject), 162)); You can trim off the parts you don't want with the delete() and pos() functions. Raymond Quote Link to comment
Assembly Posted September 5, 2012 Author Share Posted September 5, 2012 Thank you kindly. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.