listview 如何显示度分秒?
请问在listview显示度分秒,怎么设置啊???,具体如下:If TextBox4 <> "" Then dth = DutoHu(Me.TextBox4, dufenmiao) '这里返回度分秒dufenmiao=00°00′00″(dufenmiao as string)
Dim ListI As ListItem
Set ListI = Me.ListView1.ListItems.Add(1, , Trim(dufenmiao))'这里怎样显示dufenmiao???
ListI.SubItems(1) = Me.TextBox1
If LineFromSegment(fx, fy, hx, hy, zx, zy) = -1 Then dth = -(2 * PI - dth)
ListI.SubItems(2) = GetPointAR(Point3D(zx, zy, 0), dth, Val(ListI.SubItems(1)))(0)
ListI.SubItems(3) = GetPointAR(Point3D(zx, zy, 0), dth, Val(ListI.SubItems(1)))(1)
dth = HutoDu(Pol0(zx, zy, Val(ListI.SubItems(2)), Val(ListI.SubItems(3))), dufenmiao) '这里返回度分秒dufenmiao=00°00′00″(dufenmiao as string)
ListI.SubItems(4) = dufenmiao '这里怎样显示度分秒???
ListI.SubItems(5) = GetDistance(Point3D(zx, zy, 0), Point3D(Val(ListI.SubItems(2)), Val(ListI.SubItems(3)), 0))
ListI.SubItems(6) = ListI - ListI.SubItems(4)
ListI.SubItems(7) = ListI.SubItems(1) - ListI.SubItems(5)
Me.ListView1.ListItems.Item(1).Selected = True
ListView1_ItemClick Me.ListView1.ListItems.Item(1)
[ 本帖最后由 lzx1556 于 2014-7-13 09:45 编辑 ]