Python parser>>> a = "MAPLE GROVE MN 55369-3466">>> b = a[:-5]>>> b'MAPLE GROVE MN 55369'>>> with appropriate changes for the field name
So what if I want to delete the last 5 characters of every record in a field?
With the caveat I posted above:1. In field calculator, switch the parser to Python.2. Double click your field in the list to enter it in the calculation box.3. Click =4. Doubleclick your field again.5. Add this to your field in the calculation box, no spaces between the fieldname and the following: [:-5]6. Click Ok.Maybe try this on a copy of your data first, just in case.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.