Dim Str1 As String
Dim P1 As MapObjects2.Point
Dim Fx As Single,Fy As SingleFx=Me.scaleX(X,vbTwips,Me.scaleMode)
Fy=Me.scaleY(Y,vbTwips,Me.scaleMode)Set P1 = Map1.ToMapPoint(Fx,FY)
Str1 = "x="&Format(P1.X,"0.000")&",y="&Format(P1.Y,"0.000")
Label1.Caption = Str1-----------------------------------------------------------------
小弟能力有限只能靠字面意思翻,运行不了到Format这里就下不去了
Str1 = "x="&Format(P1.X,"0.000")&",y="&Format(P1.Y,"0.000")Delphi:
Str1 = Format('x=%.3f,y=%.3f',[P1.X,P1.Y]) ;