You can use the Set Map statement followed by the layer and finally the
Label statement, as below:
Set Map
Window FrontWindow()
Layer MYTABLE
Label
[ Object ID
[ Table alias ]
[ Visibility { On | Off } ]
[ Anchor ( anchor_x , anchor_y ) ]
Text text_string
[ Position [ Center ] [ Above | Below ] [ Left |
Right ] ]
[ Font ... ] [ Pen ... ]
[ Line { Simple | Arrow | None } ]
[ Angle text_angle ]
[ Offset offset_amount ]
[ Callout ( callout_x, callout_y ) ] }
I have cut and paste the information concerning the label settings from the
MapBasic Help file.
As you can see you can use the Text option to change the text value in the
label, but do remember that changes will not happen in the field in the
table and that if you need to save these costum labels you'll have to use a
workspace.
And also remember that if you pack your table you can be almost certain that
you costum labels are screwed because the use the rowid to know which record
to belong to. And when you pack the table and there has been deleted one or
several records the records after the deleted records get a new rowid !!!!
Peter Horsb�ll M�ller
GIS Developer
COWI A/S - Geografisk Information & IT
Rug�rdsvej 55
DK 5000 Odense C
Tel +45 6313 5013
Direct +45 6313 5008
Mobil +45 2270 4308
Fax +45 6313 5090
Kampsax blev i juni 2002 overtaget af COWI. I forbindelse med den
igangv�rende integrationsprocess udskiftes vores Kampsax e-mail adresser med
COWI e-mail adresser.Hjemmesideadresser forbliver u�ndrede
> -----Original Message-----
> From: Jimmy W. Hensarling [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 22, 2003 10:52 PM
> To: MapInfo-L
> Subject: MI-L Edit Text in Labels
>
>
> Is it possible to edit the actual text in a label. In
> Arc/Info you access the label text as $text. I am not looking
> to just pump the label text into a field but actually modify
> the text that displays as a label. Any help is appreciated.
>
> Thanks
>
> Jimmy W. Hensarling
> Asst. Director
> Regional 9-1-1/Emergency Services Division
> Deep East Texas Council of Governments
> -------------------------------------------
> E-mail: [EMAIL PROTECTED]
> Phone: 409.384-5704 x266
> Fax: 409-384-5390
> Pager/Voice: 877.917.7969
> Pager/Alpha: [EMAIL PROTECTED]
> Mail/Delivery: 274 E. Lamar St., Jasper, TX 75951
> Internet: www.detcog.org
>
>
> ---------------------------------------------------------------------
> List hosting provided by Directions Magazine |
> www.directionsmag.com | To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> Message number: 5081
>
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 5088