Posts

Showing posts from December, 2013

Formatting content in vbcsript adding new line

In ArcMap labelling, I need to parse the label into Customer Name and its account number with the account number appearing after new line: I used the code vbNewLine and it worked fine. [CUBAOmeters.CUSTOMER] & vbNewLine &  [CUBAOmeters.CAN] 

Creating a new field with attributes incrementing by 1

Image
pre-logic script code: rec=0 def autoIncrement( ):  global rec  pStart = 1   pInterval = 1   if (rec == 0):    rec = pStart   else:    rec = rec + pInterval   return rec