Not that I haven't worked with my professor on this, but really, this is insane.
I simply want to use a script to show the Functional Classifications of roads in a county. I have set up a definition query, and have set up a subroutine where rows are added to an array--srows. The functional classification values are added to each row in another subroutine. At the end of the script it is standard protocol to delete the rows to clean out the array.
My professor suggested using a smaller file to do a trial run on the script. I was having problems getting it to run earlier, so I sent him a version of the script and a smalller file. He got it to run with the smaller file, I saw what he did, but when I substituted my County-wide roads layer, I keep getting the same error message, of how srow and/or srows are not declared.
I even checked to see if srow was something he made up, but its not. I have tried indenting the line 'del srow, srows' to make it line up with the script, but no dice.
Do I have to rewrite the script altogether or what? Maybe I'm not phrasing this entirely with the right language but its pretty basic stuff I would think. I am on my hands and knees.
I have attached the script, the error message, and a version of the layers I am trying to work with.
Thank you kindly,
Dan B
I simply want to use a script to show the Functional Classifications of roads in a county. I have set up a definition query, and have set up a subroutine where rows are added to an array--srows. The functional classification values are added to each row in another subroutine. At the end of the script it is standard protocol to delete the rows to clean out the array.
My professor suggested using a smaller file to do a trial run on the script. I was having problems getting it to run earlier, so I sent him a version of the script and a smalller file. He got it to run with the smaller file, I saw what he did, but when I substituted my County-wide roads layer, I keep getting the same error message, of how srow and/or srows are not declared.
I even checked to see if srow was something he made up, but its not. I have tried indenting the line 'del srow, srows' to make it line up with the script, but no dice.
Do I have to rewrite the script altogether or what? Maybe I'm not phrasing this entirely with the right language but its pretty basic stuff I would think. I am on my hands and knees.
I have attached the script, the error message, and a version of the layers I am trying to work with.
Thank you kindly,
Dan B