SSRS 中可调整大小的数组

发布于 2024-12-23 06:04:58 字数 247 浏览 3 评论 0原文

我正在我的报告中编写自定义代码,其中我需要一个可调整大小的整数数组。

代码如下
<代码> 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

记忆で 2024-12-30 06:04:58

我不知道 VB 有 ArrayList。它解决了我的问题。

I did not know VB had ArrayList with it. It solves my problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文