Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to solve the problem of index out of bounds in key wizard
How to solve the problem of index out of bounds in key wizard
You didn't allocate memory to the array IntX, IntY. It should be written as:

After dimintx (1)/,write a number whose specific shaping is not less than 0.

Dimensional accuracy (1)

For security reasons, you can allocate a larger array memory. If you are uncertain about the number of arrays, you can use ReDim.

take for example

m= 10

ReDim a(m),b(m)

Yes, where m can be taken according to the actual situation, such as m=UBound(MyArray), so there will be no problem of crossing the border.