The question:

Is there an easy way to transfer the text of a text object into a field?
I'd like to, for example, be able to use the update column command to take
whatever infomation in in a text object and move it into a field associated
with the object. Is there a variable associated with each object that
contains this information? Any ideas??

The Answer:

Thanks to Jacques Paris (fastest on the draw), Peter Meier, Bill Thoen,
Robert Crossley, Richard Greenwood, and Bob Young.

Everyone advised that all the information I needed can be accessed using
Objectinfo.

objectinfo(obj,3) yields the text string of a text object

Fine Print/Helpful Hints

Be careful to create a new column that will hold the longest string
contained in the objects, if not there will be some truncation.

The update I wanted can be done via update column, mapbasic window, or sql
select

Seems so obvious, I sense I shoul dhave known that. I guess Bob Young was
on the mark in his example which include the command Update Table DECLAN.
I've been updated!

As might be guessed, I'm trying to salvage a coverage for which the
attribute associated with (in this case) point locations were entered as
text objects; i.e., I have point locations and nearby a label. Using the
objectInfo I can move the label into a field (works as advertised). What I
really need to do is to transfer this text string to the true point
location (not a constant distance or direction). Still experimenting with
methods....


Thanks to all,

declan


----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to