Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I need to combine two fields in an attribute table. I want to do this using the field calculator. What is the proper script to write to combine a field called "name" and "type", so that it produces one field with "name type"?

I'm using ArcGIS Desktop 10.0.

share|improve this question

1 Answer 1

When in VBScript mode the sytnax would be

[name]&[type]

To add some separation you can use:

[name] & "-" & [type]

to put a dash between the two values.

share|improve this answer
    
Awesome! Thank you so much! –  mmiller Oct 17 '12 at 17:36
1  
This is also refered to as "concatenating" values. @mmiller - can you please accept the above as "answered"? –  Jakub Oct 17 '12 at 20:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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