I do not know if this answer is the best, but I could not wait to test with
this message if the list server is back on after the 20 or so blank messages
I received.
I guess that to pass your variable to the command you would have to use the
run command that way:
dim a as string
a="create variable....."+txt_var+" etc..."
run command a
Not knowing what was your real problem, it is the best I can do.
Jacques Paris
============================================================
e-mail [EMAIL PROTECTED]
alternate [EMAIL PROTECTED]
gis activity (MapInfo mainly)
http://www.total.net/~rparis/gisproducts.htm
============================================================
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Tony Elson
> Sent: July 21, 1999 8:12 PM
> To: Mapinfo User Group
> Subject: MI Altering Objects in Layouts (Text Objects)
>
>
> Apologise in advance if this has been covered before and I'll admitt
> that my experience in MapBasic is limited.
>
> Basically, I have a layout. I want to automatically update some text in
> the layout.
>
> I have been able to identify the text I wish to change via the "fetch"
> and "objectinfo()" commands in my
> very basic .mbx program.
>
> However, I am having major difficulty trying to use the "Alter Object"
> statement.
>
> Since (or as I understand it) that the Alter Object statement requires
> an object variable (therefore referenceing and object or more
> specifically in my case, a text object), I have tried using the create
> text into variable command (even though the text is already there)
>
> So, my program looks a little like this:
>
> ......create text into variable myobj txt_var ..... etc 'where txt_var
> is a variable of the existing text.
>
> then I go:
>
> Alter Object myobj info OBJ_INFO_TEXTSTRING, "New Text".
>
>
> Obviously, I have something fundamentally wrong somewhere and I am not
> convince that the create text into variable command is the correct way
> to go.
>
> Are there other options?
>
> Thanks in advance
>
> -----------------------------------
> Tony Elson
>
> GIS Analyst
>
> Geographic Technologies Limited
> PO Box 6015
> Wellesley Street,
> Auckland, New Zealand
>
> Ph: 64 9 379 2061 x107
> Fax: 64 9 379 2044
> Mobile: 025 278 4896
> Email: [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> ------------------------------------
> ----------------------------------------------------------------------
> To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
> "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
>
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]