I have a points shapefile with City, State, Zip columns. I want to merge the column data together into a new column containing: City-State-Zip (with the hyphen).
Can I merge column data like this using a IFeatureClass? If not what should I try?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
Depending on whether you want to update all rows or just the selected row, you could make use of IFeatureClass's Search or Update methods to obtain an IFeatureCursor that you could then use to create your concatenated attribute value and then plop it into the
IFeature.Value if I'm not mistaken.
Personally, however, I always prefer to cast an IFeatureClass to an ITable. I just find myself more comfortable working with them. :)