1

I have a string field named CHESS2016_N94S_FL1_C__20160407230029.562GMT_COLOR-8-BIT.JPG and I would like to select characters 16-18 to populate a new field. I've been trying to use the field calculator index function in ArcMap but have only been getting errors.

2
  • 1
    VB syntax mid(field,16,3)
    – FelixIP
    Commented May 15, 2016 at 0:49
  • I think it is much nicer and versatile in Python, i.e. field [16:19]
    – fatih_dur
    Commented May 15, 2016 at 2:46

1 Answer 1

1

As commented by @FelixIP this can be done in:

VB syntax mid(field,16,3)

and as commented by @faith_dur:

it is much nicer and versatile in Python, i.e. field [16:19]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.