Scott-
What you want to do is PARSE the string to the individual commands that are
unique to the LAYOUT code you listed. Start with LAYOUT or SET LAYOUT and
work your way down the next "unique" command such as in the CREATE XXXX
command - the quotes may be the only tricky part in properly double quoting
them if you dynamically rebuild them with new values.
Alternatively, if the layouts are made to be STANDARD enough (i.e.: window
names, common query result table names, etc.) then you could simply keep
your STRING in a file with the appropriate WOR header and run it from the
RUN APPLICATION command (which, if you didn't know doesn't have to be called
*.WOR or *.MBX).
Depending on your need - either approach should work for you.
Happy mappin'
RH Jannini
http://www.mapONE.com
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Scott Barling
> Sent: Sunday, December 19, 1999 5:39 PM
> To: MapInfo-L (E-mail)
> Subject: MI Using the data in a String Variable
>
>
> I asked a question a couple of days ago which was poorly worded
> and resulted
> in the correct response for the question but not what I was after (Thanks
> Peter Moller).
>
> This would work for the question asked, but what I really stuffed
> up in the
> question is that the layout I want to create is the one whose
> data is in the
> string variable, as there may have been other layouts created and closed
> etc. in between
>
>
> I have a string variable, (LayView), which contains the MB code
> to create a
> Layout window.
>
> Is there a way to extract this data to use in a layout command?
>
> I want to create a layout using the data in the string.
>
>
> LayView contains the following data:
>
>
> Layout
> Position (4.69792,2.13542) Units "in"
> Width 5.29167 Units "in" Height 3.09375 Units "in" Min
> Set CoordSys Layout Units "in"
> Create Frame (1.9188,1.3042) (41.9188,27.5604)
> Pen (1,2,0)
> Brush (2,16777215,16777215)
> Title "Complying Development"
> FillFrame On
> Create Text
> "LEGEND - SOURCE OF DATA"
> (37.059,27.8069) (40.7292,28.1)
> Font ("Bookman Old Style",7,18,0)
>
> Create Line (37.0896,28.4243) (37.8528,28.4243)
> Pen (3,2,16711935)
> Create Text
> "No Information available,\nor follows 10 m Contour Line"
> (37.9764,28.2028) (40.6479,28.6792)
> Font ("Bookman Old Style",2,14,0)
> etc...
>
> Sorry about the first question (I was extremely tired when I posted it).
>
> Thanks heaps for any responses to this question.
>
> Scott
>
> [EMAIL PROTECTED]
> <mailto:[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]