Avenue field.make() syntax

3451
2
Jump to solution
05-11-2015 12:49 PM
ChrisMathers
Regular Contributor II

I'm helping our property appraiser out by converting some old Avenue code they are still using (yikes) into Python. In Field.Make( "re_label",#FIELD_CHAR, 15, 0 ) I assume the first number is field length and in Field.Make( "LndCnt",#FIELD_DECIMAL, 2, 0 ) I assume its precision since that's a double. What I don't know is the second number in that syntax, I've figured out everything else I need out besides that.

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
DanPatterson_Retired
MVP Esteemed Contributor

ahhh miss it

theLengthField = Field.Make("Length",#FIELD_DOUBLE,16,3) 

16 characters, 3 decimal places

Bill Huber's website still contains a large reference to scripts etc...his syntax is impeccable

Quantitative Decisions

View solution in original post

2 Replies
OwenEarley
Regular Contributor

I haven't touched avenue for a very long time but the second number is most likely scale. The Double data type has precision and scale. This page has some more information - ArcGIS Help (10.2, 10.2.1, and 10.2.2)

0 Kudos
DanPatterson_Retired
MVP Esteemed Contributor

ahhh miss it

theLengthField = Field.Make("Length",#FIELD_DOUBLE,16,3) 

16 characters, 3 decimal places

Bill Huber's website still contains a large reference to scripts etc...his syntax is impeccable

Quantitative Decisions