您好,我试图在 vb 中创建一个类,以及何时并尝试实例化该类没有任何值的类
Private lat As Double
Private lon As Double
Public Property Get Longitud() As Double
Longitud = lon
End Property
Public Property Get Latitud() As Double
Latitud = lat
End Property
Public Property Let Longitud(ByVal longi As Double)
Longitud = lon
End Property
Public Property Let Latitud(ByVal lati As Double)
Latitud = lat
End Property
当我试图实例化时
Dim cord As Coordenadas
Set cord = New Coordenadas
cord.Latitud = 40.30416667
cord.Longitud = 0.22583333
我看不到电源线有任何变化