7,763
社区成员
发帖
与我相关
我的任务
分享
Option Explicit
Private Type POINT
X As Long
Y As Long
End Type
Dim arr As Dictionary
Dim pt As POINT
Private Sub Form_Load()
Set arr = New Dictionary
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
pt.X = X
pt.Y = Y
arr.Add CStr(Now), pt
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set arr = Nothing
End Sub