Deleting first character in field

13854
5
Jump to solution
08-25-2016 08:31 AM
steveubert
New Contributor II

Hello

I'm running arcmap 10.4. I have 5k entries of 'FEC_IDCODE' with 01234 and I need the first 0 deleted. I have tried to google search and edit various scripts to delete the first letter of a text field. I've tried the codes and advice from the listed websites. All I've gotten is error codes with each try. What am I doing wrong.

arcgis 10.0 - Delete first two letters from a string field - Geographic Information Systems Stack Ex... 

qgis - How to remove a certain number of digits from the front or end of an attribute field? - Geogr... 

Field Calculator- Delete last 3 text characters 

How to remove first character from every row of an attribute field 

https://community.esri.com/thread/21358 

1 Solution

Accepted Solutions
JoeBorgione
MVP Esteemed Contributor

I just tried this and it worked:

Where all my FEC_ID fields had a leading 0....

can't wait to retire....

View solution in original post

5 Replies
JoeBorgione
MVP Esteemed Contributor

I just tried this and it worked:

Where all my FEC_ID fields had a leading 0....

can't wait to retire....

View solution in original post

steveubert
New Contributor II

thank you

Reply
0 Kudos
JoeBorgione
MVP Esteemed Contributor

Happy to help-  would you mind checking my response as answered?

can't wait to retire....
Reply
0 Kudos
DanPatterson_Retired
MVP Esteemed Contributor

done... and a big python check mark too ... sometimes they forget

Reply
0 Kudos
DavidCooper
New Contributor

This was a great help to me, thank you so much!

Reply
0 Kudos