是否有辦法在循環中聲明70個不同的變量,而不是聲明每個變量?在VB.net中動態聲明變量
我想做一些象下面這樣:
For i As Integer = 0 To 70
Dim Para + i AS OracleParameter
Next
相反如下聲明的:
Dim Param1 AS OracleParameter
Dim Param2 AS OracleParameter
Dim Param3 AS OracleParameter
…
Dim Param70 AS OracleParameter