下面语句中错误的是 ( ) A.ReDim Preserve Matrix(10, UBound(Matrix, 2)+1) B.ReDim Preserve Matrix(UBound(Matrix, 1)-4-1, 10) C.ReDim Preserve DynArray(UBound(DynArray)+1) D.ReDim DynArray(UBound(DynArray)+1)
举一反三
- 在窗体的通用声明处有语句Dim a() As Single,以下重新定义数组的语句中,正确的是()。 A: ReDim a(3,3):ReDim a(3,4) As Double B: ReDim a(3,3):ReDim Preserve a(4,4) C: ReDim a(3): ReDim a(3,3) As Double D: ReDim a(3,3):ReDim Preserve a(3,4)
- 能使动态数组a(5)元素个数加1,但保留原有数组中元素内容的语句是()。 A: ReDim a(6) B: ReDim Preserve a(6) C: Static a(6) D: Array a(6)
- 能使动态数组SA(5)元素个数加1,且保留原有数组中元素内容的语句是( )。 A: ReDim SA(6) B: ReDim Preserve SA(6) C: Static SA(6) D: Array SA(6)
- 对于数组d(n),要增加2个数组元素,又要保留原来数组中的数据,以下语句中正确的写法是________。 A: ReDim Preserve d(n+2) B: Dim d(n+2) C: Dim Preserve d(n+2) D: ReDim d(n+2) E: ReDim d(n2)
- 下列数组声明正确的是( )。 A: n=5 Dim a(1 to n) As Integer B: Dim a(10) As Integer ReDim a(1 To 12) C: Dim a() As Single ReDim a(3,4) As Integer ReDim a(1 to n)As Integer D: Dim a() As Integer n=5