I need scripts for the field calculator that, 1. extracts the first word from a column, i.e. Jones School - Jones, and 2. A script that will capitalize this new field, Jones - JONES.
This is Arc 10. Thanks, still learning.
|
I need scripts for the field calculator that, 1. extracts the first word from a column, i.e. Jones School - Jones, and 2. A script that will capitalize this new field, Jones - JONES. This is Arc 10. Thanks, still learning. |
||||
|
|
|
Assuming you consider a space as a separator: Python:
VBScript:
|
||||
|
|
|
The Python string manipulation methods should give you access to all of the features you are looking for: http://docs.python.org/library/stdtypes.html#string-methods To extract words from a string, take a look at the usage of:
For capitalizing your word(s), take a look at the usage of:
|
||||
|
|