Dear Wayne,
I've tried the code in the field calculator ticking Python and string but it failed to work. Perhaps you need to teach me step by step on how to use both so that it can be done correctly ; the label expression and the field calculator. Perhaps I am not a novice but worse than that in using ArcGIS 10 and programming.
i) How I field calculate - Add theme> open attribute table> right hand click on the Delta field (refer to the screenshot file which I sent last time) to select field calculator > For Parser, I select Python> For type, I select string> For the expression box, Delta = def calc(val):
val = val.split('-')
return u'%s\u00B0 %s\u2032 %s\u2033' % tuple(val)
>OK
A message pops up "There was a failure during processing, check the Geoprocessing result window for details.
ii) Label expression - Add theme>right hand click to select Properties> Layer Properties, I select Labels> Label field, I select Delta>Click on Expression> In Label Expression, I paste your code
def FindLabel ( [YourField] 😞
deg, min, sec = [YourField].split('-')
S = u"{0}\u00B0 {1}\u2032 {2}\u2033".format(deg, min, sec)
return S
(I changed [YourField] with [Delta]
>OK
A message pop up "Carriage return are not allowed in simple expressions".
Please enlighten me on this. Sorry if I sound stupid or silly but please forgive this middle age man. TQ