how to get value with a backsplash in it?
Hello,
I have a field value with a backslash in it. However I do not get the value from the selected feature..
Here is the code to get the value:
stringvariable=feature.attributes("HYPERLINK").ToString()
Here is the value of the field:
B\BartonSpringsRd505.pdf
I got null value back.
Thanks for the help.
0
-
You need to escape your backslash. You need to either change to "\" or "\\" 0 -
Thanks. I found out it was data related. I was able to get the values from a selected feature for some of the fields but could not for others. One of the field has backslash in its value. I recreated a new featureclass with the same field definition and loaded data into the new one. Now i get all the values from all the fields. 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare