I'm trying to make an advanced label expression using the python parser and I keep getting the following error:
The expression contains an error.
Modify the expression and try again.
Error 0 on line 0.
Error running expression: FindLabel()
Traceback (most recent call last):
File "<expression>", line 1, in <module>
NameError: name 'FindLabel' is not defined
def FindLabel ( [Direction] ):
return "{}° {}' {}\"".format( [Direction].split("-"))
Can anyone tell me why FindLabel is not defined?