AnsweredAssumed Answered

Converting VB Script for Labelling to Arcade

Question asked by WDelmar on Jul 9, 2019
Latest reply on Jul 10, 2019 by xander_bakker

I have the following VB Script expression for labeling hatches. It worked just fine in ArcMap. As I am now using ArcGIS Pro, I would like some help converting it to Arcade.

 

 

Function FindLabel ( esri__measure )

segLen = esri__measure

if  right(int((segLen *3.2808399)),2) = 0 then

  lblStation= int((segLen *3.2808399)/100) & "+00"

else

  lblStation = int((segLen *3.2808399)/100) & "+" &  right(int(segLen *3.2808399),2)

end if

 

  FindLabel = lblStation

 

End Function

Outcomes