为类型声明替代名称
语法
参数
typename
新的替代名称。
symbol
符号或数据类型声明与typename 关联。
说明
例子
Type ParentFwd As Parent
Type Child
Name As ZString * 32
ParentRef As ParentFwd Ptr
''...
End Type
Type Parent
Name As ZString * 32
ChildList(0 To 9) As Child
''...
End Type
Dim p As Parent
p.Name = "富"
With p.ChildList(0)
.Name = "Jr."
.ParentRef = @p
''...
End With
With p.ChildList(0)
Print .Name; "是孩子"; .parentRef->Name
End With
与QB差别
参考