Select to view content in your preferred language

Comparing field values to file names

4110
10
06-15-2011 09:09 AM
by Anonymous User
Not applicable
Original User: SStrand

I have a shapefile which has a hyperlink field populated with .jpg files. What I would like to do is have a python script check the hyperlink field against the folder full of .jpg files to make sure that everything will be linking correctly. Any help would be much appreciated!
0 Kudos
10 Replies
by Anonymous User
Not applicable
Original User: rdharles

Hey R.D. Thanks a bunch for the tip. I had used this method earlier but I kept getting error. I had narrowed it down to the !=. The selectbyattributes where clause does not like that operator for NOT EQUALS, which is weird, because I have used it in other SQL queries in python.

After your post, I finally clued in to use <> and that works perfectly. Sometimes it's nice to just have someone jog your memory!


Strange that <> works and != does not work!
I read in some Esri doc a while back that != has replaced <>
I guess not everywhere???
0 Kudos