POST
|
WWHHHooooaaaa!!! That was it. Sorry, we didn't think of that earlier. I'll have to remember that for future questions. Thank you again for all your help and being patient.
... View more
10-27-2014
01:34 PM
|
0
|
1
|
574
|
POST
|
Oh Yeah, on the notes. I usually just print the discussion out. I'm going to continue to try to figure out this error of "zero length field name in format". Thanks again for your help.
... View more
10-27-2014
01:04 PM
|
0
|
3
|
771
|
POST
|
OK, I'll try all of that and see how it turns out. Thank you very much for all your help today!
... View more
10-27-2014
11:47 AM
|
0
|
5
|
771
|
POST
|
Could this error be because it is a dbf not a shapefile or feature class??
... View more
10-27-2014
11:38 AM
|
0
|
0
|
771
|
POST
|
Yeah, I have no idea what is going on. I just made 3 new text fields and filled the first two with the data and then tried formula on third field. It still gives me an error of "zero length field name in format".
... View more
10-27-2014
11:37 AM
|
0
|
7
|
771
|
POST
|
Course the other thing is the first part can only be 4 numbers so how do I get it to add only the numbers I need? Also, no periods. I think I fix that by taking out the last {} right?
... View more
10-27-2014
11:22 AM
|
0
|
2
|
771
|
POST
|
Yeah, I'm not sure what is going on. I still get an error zero length field name in format. Could it be that my AControl and ASection are double fields not string??
... View more
10-27-2014
11:20 AM
|
0
|
0
|
771
|
POST
|
Do I put something in place of the % marks? I am getting a syntax error.
... View more
10-27-2014
10:54 AM
|
0
|
2
|
574
|
POST
|
Yes! I just looked to double check. I'll attach 2 screen shots. One of the table one of the field calculator. Let me know if you need anything else. I am going to keep trying to figure it out.
... View more
10-27-2014
10:44 AM
|
0
|
13
|
1016
|
POST
|
Typing it exactly like you have it. I am getting a ValueError : zero length field name in format. I have those field names so I'm not sure why it doesn't like it.
... View more
10-27-2014
09:33 AM
|
0
|
15
|
1017
|
POST
|
I am also trying print "%s-%s" % (!ACONTROL!.zfill(4), !ASECTION!.zfill(2)). It also contracts a syntax error. Do I have to put anything before the print? Should it be (period) .print "%s-%s"% .......
... View more
10-27-2014
09:18 AM
|
0
|
0
|
574
|
POST
|
I'm thinking I have to have it as a shapefile because I keep getting errors for the code. It keeps saying invalid syntax. I'm typing them as is. Do I have to put something in front of print?? I am typing in field calculator box print"00{}-0{}".format(ACONTROL,ASECTION)
... View more
10-27-2014
09:09 AM
|
0
|
17
|
1017
|
POST
|
I have two fields that I need to concatenate together but I need to add zeros so one said has 4 digits and the other side has 2 digits. Both separated with a hypen. For Example, 0024-14. This is the code I have written am I close??? Left([ACONTROL], 4, "-") & Right([ASECTION], 2) So, it would be field ACONTROL with 4 digits and ASECTION with 2 digits.
... View more
10-24-2014
01:32 PM
|
0
|
26
|
4983
|
POST
|
Thank You bunches! I see where I messed up. My -KG had no spaces so it was thinking it worked the code when the code I provided was wrong. Python. Gotta remember it wants spaces correct! Thanks again.
... View more
10-13-2014
01:37 PM
|
0
|
0
|
832
|
Title | Kudos | Posted |
---|---|---|
1 | 04-09-2013 06:51 AM | |
1 | 02-22-2013 11:19 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|