Im not sure why that isnt working but for starters you should try string substitution instead of concatentation and raw strings so you dont have to excape all those'\'. http://docs.python.org/release/2.6.6/library/stdtypes.html#string-formatting-operationsPlatLink = r"\\Covsdesrv\GIS Common\Plats\00%s\00%s000%s.TIF"%(MapNum,MapNum,PageNum)
names = ["Obi", "Bob", "Billy"] for name in names: if name == "Obi": print name, "is ", True, "a", "Jedi master" else: print name, "is not a Jedi master"
def SetLink(map, page): return r"\\Covsdesrv\GIS Common\Plats\%03d\%03d%04d.TIF % (map, map, page)
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.