Structure & List(of type)的问题,请各位大侠指教?
我现在在模块中定义了如下的几个structure
public structure aa
dim a1 as string
dim a2 as string
end structure
public structure bb
dim b1 as string
dim b2 as string
end structure
public structure cc
dim c1 as list(of aa)
dim c2 as list(of bb)
end structure
public VarT as new list(of cc)
public VarM as new aa
我在程序中使用VarT.item(i).c1.add(VarM)时就出错了,说没有定义New等
但是我使用如下定义程序又不允许
public structure cc
dim c1 as new list(of aa)
dim c2 as new list(of bb)
end structure
请问各位大侠我如何才能实现List(of type)的嵌套操作呢?
因为我的程序要求能动态的增加减少数组,而且应该是二维动态数组,
我想用List(of type)来实现,操作时遇到了以上的问题,请大侠们指教。