【发布时间】:2020-03-24 14:16:01
【问题描述】:
User-Type 是一种结构。我想知道我是否可以在里面放子声明。比如:
Type myType
myParam1 As String
myParam2 As Long
...
Sub mySub(param)
'here I want some code for printing/showing params value
End Sub
End Type
我问是因为当数据位于 myType 的项目数组中时,我在打印 myParam 的值时遇到问题。在用 myType 项填充 myArr 后,声明
print myArr(i).myParam1
给我空字符串。
【问题讨论】:
-
此功能在 Microsoft VBA 中不存在,所以如果它在 LibreOffice VBA 中可用,我会感到惊讶。
-
请张贴reproducible code example 说明问题。此外,该语言称为 LibreOffice Basic,而不是仅适用于 Microsoft 的 VBA。
标签: vba openoffice-calc