7,763
社区成员
发帖
与我相关
我的任务
分享
Public Type ObsVal
P1 As Double 'L1上的P码伪距
End Type
Public Type XYZRS
rx As Double
ry As Double
rz As Double
End Type
Public Type O_Data
data() As ObsVal
ComSateRS() As XYZRS
End Type
Public Type Ofile
LiYuan() As O_Data
End Type
Public Odata1 As Ofile
for i = 1 to 10
For j = 1 To n
Odata1.LiYuan().ComSateRS(j).rx = 3
Next j
nenxt i
为什么会显示 Odata1.LiYuan().ComSateRS(j).rx 下标越界 ?? for i = 1 to 10
For j = 1 To n
4=Odata1.LiYuan().data(j).P1
Next j
next i
竟然可以成立4=Odata1.LiYuan().data(j).P1
Public Type abc
a() As Integer
End Type
Public Type ccc
a As abc
End Type
Private Sub Form_Load()
Dim xx As ccc
ReDim xx.a.a(0 To 2)
Debug.Print xx.a.a(1)
End Sub