Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试添加一个选项来执行一定次数的操作,但我无法使用 int32 来使用它。我在用着
dim Int As Int32() For i = 0 To Int 'code Next i
任何帮助表示赞赏。谢谢。
除了名字不好之外,在Int32()你实际声明一个Int32数组之后加上括号。你可能只想要一个 Int32,在这种情况下你应该去掉括号并给它一个值:
Int32()
Dim NumberOfTimes As Int32 = 3 For i As Int32 = 1 To NumberOfTimes MessageBox.Show("Hello " & i.ToString) Next i