ArcGIS Pro VB二分式
作者:互联网
'设计人:闫磊 Function spacenum(n) str="" For i=0 To n str=str+"_" Next spacenum=str End Function '----------FUNCTION STRLEN(STR)---------- Function strlen(str) Dim p_len p_len=0 strlen=0 p_len=Len(str) For xx=1 To p_len If Asc(Mid(str,xx,1))<0 Then strlen=Int(strlen) + 2 Else strlen=Int(strlen) + 1 End If Next End Function Function myFind ( DZM, NAME ) a=strlen(dzm) b=strlen(NAME) If a>b Then myFind ="<und>" & DZM & "</und>" & vbnewline & NAME Else str= Spacenum((b-a)/2) myFind ="<und>" & str & DZM & str & "</und>" & vbnewline & NAME End If End Function '编制日期:2012-03-25 Function FindLabel ( [TFH],[Shape_Area]) FindLabel =myFind([Shape_Area],[TFH]) End Function
标签:Function,VB,End,myFind,Pro,DZM,len,ArcGIS,str 来源: https://www.cnblogs.com/gisoracle/p/16272752.html