Description: This function returns the text name of the given state.
Warning: This function should be used by advanced users only.
Returns: Text
Usage: Script
Format: StateName(State)
Parameters: State { Code Value } { required } { no default: }
Any code value expression for the state.
Comments: This function may only appear in a script.