Ok, so how do you call this function?
FUNCTION TypeName(BYVAL oObject AS IUNKNOWN) AS STRING
END FUNCTION
MyString = TypeName(??????????)
Oh sorry I didn't see this:
Object get mypage.AllPageItems to myIndesignObjects
object get myIndesignObjects.firstitem to myIndesignObject
. . .
myType = TypeName(myIndesignObject) ' e.g. I want to know if it is a TextFrame or ImageRectangle
FUNCTION TypeName(BYVAL oObject AS IUNKNOWN) AS STRING
END FUNCTION
MyString = TypeName(??????????)
Oh sorry I didn't see this:
Object get mypage.AllPageItems to myIndesignObjects
object get myIndesignObjects.firstitem to myIndesignObject
. . .
myType = TypeName(myIndesignObject) ' e.g. I want to know if it is a TextFrame or ImageRectangle
Comment