Briggs,
When you are learning MapBasic it's a good idea to open the MapBasic window (Options, Show MapBasic Window), then perform the operation you want. You won't see iterative or multi-line code but simple functions and queries are laid out for you.
Here I've opened a layer, created a map window, opened Layer Control and set the labelling properties such that Auto Label is on and Street is the column I want to label. It can get more involved than this but it's a good start.
Open Table "C:\dummy_data\dataobject_alldata.TAB" Interactive
Map From dataobject_alldata
set map redraw off
Set Map Layer 1 Label With street Auto On
set map redraw on
You will notice that no code is displayed for the opening of Layer Control. You will also notice that once the layer has been opened, it's name is no longer used and is replaced by it's map window index "1" in this case as there is only one layer in the map widow. If you are opening your layer into an existing map window you will need to find your layer's index before you can auto label it. This can be done using a number of different functions or by simply looping the layers in the map window to find a match. Let me know if you don't know how to do this.
Regards
Adrian Gray
Viewshed Limited
t: 01392 861946 f: 01392 861947
Orchard House Church Road Silverton Exeter EX5 4PD
registered in England and Wales: 5661115 VAT# 876 6186 72
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at