ERROR
When attempting to verify or execute an advanced Java Script labeling expression, the following error occurs:
"No features found. Could not verify expression."
The labeling expression parser expects a field name to be enclosed in square brackets. In Java Script, the square brackets refer to functions such as an array, which results in the error.
Code:
function FindLabel ( [Name] )
{
var strArray = [Name].split(" ");
return( strArray[0] );
}
Code:
Function FindLabel ( [Name] )
dim pArr
dim pStr
pArr = split([Name]," ")
pStr = pArr(0)
FindLabel = pStr
End Function
Get help from ArcGIS experts
Download the Esri Support App