arcmap 示例代码

dim str as string
if (  [YS] = "T1" or [YS] =  "P2h" or [YS] =  "P2" ) then
str = 1
end if
if ( [YS] =  "C1d" or [YS] =  "D3" or [YS] =  "C1y"  or  [YS] =  "C2" or  [YS] =  "C2h" or [YS] =  "C3" or [YS] =  "P2h+d" or [YS] =  "P1m" or [YS] =  "Ka" or [YS] =  "Ex3/5" or [YS] =  "Bu3/5"  or [YS] = """P1q"""  or  [YS] = " " or  [YS] = "P1q"  ) then
str=2
end if
if (  [YS] =  "C2d" ) then
str = 3
end if
if (  [YS] =  "Q" or [YS] =  "T2" ) then
str = 4
end if

 

dim cc as string
if ( [ADCODE99] like "4501*" ) then
cc = "南宁市"
end if

 

posted on 2008-12-24 12:47  YISONG  阅读(282)  评论(0)    收藏  举报

导航