You are here: > ESRI Forums > arcgis desktop discussion forums > Thread Replies

ArcGIS Desktop Discussion Forums

ArcGIS Desktop - Extension - Maplex forum

ArcGIS 9.3 - left align text in a vbscript...   Didier Vanden Berghe Mar 08, 2010
Re: ArcGIS 9.3 - left align text in a vbscr...   Jon Morris Mar 10, 2010
Re: ArcGIS 9.3 - left align text in a vbscr...   Didier Vanden Berghe Mar 10, 2010
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject ArcGIS 9.3 - left align text in a vbscript label expression 
Author Didier Vanden Berghe 
Date Mar 08, 2010 
Message Can we, and if yes, how, include an align = left property in a label expression ?

I have multilines labels defined by a vbscript expression and placed as best as possible by Maplex. Unfortunately the labels are sometime left aligned, sometime right aligned - see attached picture. 
 
Function FindLabel ( [F_12_8] , [F_4_9] , [F_7_9] , [F_9_9], [WELL])
Dim OutStr
OutStr = "<BOL>" & [WELL]  & "</BOL>"  
If [F_12_8] = "NA" Then
Else
OutStr = OutStr & vbnewline & "Dec08 : " & [F_12_8]  
End if
If [F_4_9] = "NA" Then
Else
OutStr = OutStr & vbnewline & "Avr09 : " & [F_4_9]
End if
If [F_7_9] = "NA" Then
Else
OutStr = OutStr & vbnewline & "Juil09 : " & [F_7_9]
End if
If [F_9_9] = "NA" Then
Else
OutStr = OutStr & vbnewline & "Oct09 : " & [F_9_9]
End if
FindLabel = OutStr
End Function
 
  ArcGis labels.JPG (opens in new window)
 
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: ArcGIS 9.3 - left align text in a vbscript label expression 
Author Jon Morris 
Date Mar 10, 2010 
Message You don't need to set the alignment in the label expression. In the Placement Properties dialog > Fitting Strategy tab, click the stacking options button. Change the Label Alignment pulldown to Constrain to Left.

All your labels should now be left aligned. 
  Jon Morris
ESRI 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: ArcGIS 9.3 - left align text in a vbscript label expression 
Author Didier Vanden Berghe 
Date Mar 10, 2010 
Message Thanks for the reply

So simple ... I forgot to mention that this doesn't work, and I don't know why. In the traidtionnal label options pannel those functions are inactivated. In the maplex pannel, those are activated but whatever the change I do they will come back to what they were.

The labels with the arrow on the left are justified left, and the inverse.