here's a cut-down version of the code tim sent me:

################
For lyr = 1 to MapperInfo(MapID, MAPPER_INFO_LAYERS)
        SetMapString = "Set Map Layer " + lyr + 
                " Label With " + Chr$(34) + LayerInfo(MapID, lyr,
LAYER_INFO_NAME) + Chr$(34)
        Run Command SetMapString
Next
################

this will probably do once i have all my layers in place and am looking to
finalize the werkspace.  however, does this mean there's no way of
identifying the CURRENT layer?  surely the system that tells the map to
display a label for this layer KNOWS what layer this is.

hmmm.  might just get one of my monkeys to go through and add route names to
the browser data.

cheers anywho.

-----Original Message-----
From: Tim.Nuteson [mailto:[EMAIL PROTECTED]
Sent: Thursday, 8 July 2004 11:02 PM
To: Simmonds, Ashley (DTUP)
Subject: RE: MI-L label with layer/table name?


Ash,

I couldn't get it to do it through the UI, but here's MB code that sets
the "label with" to layername for all layers in the map window.

Regards,

Tim Nuteson
Target

-----Original Message-----
From: Simmonds, Ashley (DTUP) [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 07, 2004 10:59 PM
To: 'Mapinfo List (E-mail) ' (E-mail)
Subject: MI-L label with layer/table name?


i have hundreds of tables (bus routes) that i really couldn't be
bothered going through to add their name to a field.
 
just wondering if anyone knows if i can use the name of the layer/table
in the label expression.
 
cheers.
 
ash

---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 12529

Reply via email to