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]) ;
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]) ;
解决方案 »
- 使用ADODB.connection,需要直接连接一个IP地址上的oracle数据库,connectionstring应该怎么写啊
- 给excel工作簿加密码的问题!
- 连接远程SQL SERVER 后如何修改删除数据
- 有一mdb库中包含一个人事表格,其中“部门”字段的取值是固定的几种可能,怎样通过代码
- 谁做过这样的接口:能够把不同数据库格式转换为一种!
- 如何把查询出来的数据写入到一个新生成的Excel文件中呢,谢谢
- 一个非常简单的问题
- 谁知道Can't generate SSPI Content(ODBC)错误是如何引起来的?
- 让更多的人知道我在第二书店购书的遭遇,留言有分
- ado的errors中有多小种错误信息
- NetLocalGroupAddMembers API 调用出玩124错误,是什么原因?
- vb 如何以图形化方式显示各考生的状态
var
str1: stringl
p1 : MapObjects2.Point;
Fx : single;
Fy : single;
begin
P1 := Map1.ToMapPoint(Fx,FY);
Str1 := 'x=' + Format('%8.3f', P1.X) + ',y=' + Format('%8.3f', P1.Y);
Label1.Caption := Str1;
end;
Fx=Me.scaleX(X,vbTwips,Me.scaleMode)
Fy=Me.scaleY(Y,vbTwips,Me.scaleMode)