SSRS 中可调整大小的数组
我正在我的报告中编写自定义代码,其中我需要一个可调整大小的整数数组。
代码如下
<代码> Dim users() As Integer
ReDim 保留用户(0 到 UBound(用户) + 1) 作为整数
当我尝试运行报告时,它说 'redim' 语句不能再用于声明数组变量
我该如何解决这个问题? VB 对我来说有点遥远,任何帮助都是值得赞赏的。
谢谢。
I am writing custom code in my report and in it I need a re sizable integer array.
Heres the code
Dim users() As Integer
ReDim Preserve users(0 To UBound(users) + 1) As Integer
When I try to run the report, it says'redim' statements can no longer be used to declare array variables
How do I get around this one? VB is kind of far thing for me, any help is appreciated.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道 VB 有 ArrayList。它解决了我的问题。
I did not know VB had ArrayList with it. It solves my problem.