Hi Janet
The new Layout doesn't come with query support as the classic layout window had.
You will have to run thru the frames, check their type and for the text frames check their content/text.
One of the engineers on the MapInfo Pro team, Michele, wrote a post on how to loop thru the frames and find specific frames.
You can find the post here:
How to Find and Select Specific Frames in a Layout.
I would build my own custom MapBasic function so that I could reuse this whenever I needed it. Also remember that frames on the layout now support names. This means that you can give your frames a name that can be used when searching for the frames.
------------------------------
Peter Horsbøll Møller
Pitney Bowes
------------------------------
Original Message:
Sent: 01-16-2019 21:29
From: Janet Bateson
Subject: Mapbasic: textframe_id in Alter Designer Text statement
Hi,
Is it possible to return the textframe_id of a text object in the Layout window by searching on a given text string to return it's ID?
Does anyone have an example of a similar Mapbasic statement?
Thanks
------------------------------
Janet Bateson
Senior GIS Consultant
Critchlow Ltd (VAR)
Wellington
------------------------------