What are some potential dangers in using arrays in loops?
Printable View
What are some potential dangers in using arrays in loops?
What are you specifically asking? A lot of times you loop because of an array...
Here is a way you would use an array in a loop:
VB Code:
Dim intCount As Integer Dim array(4) As String array(0) = "Hello" array(1) = "How" array(2) = "are" array(3) = "you." For intCount = 0 to 4 MsgBox array(intCount) Next
There shouldn't be any...where did you hear that from? http://www.vbforums.com/:confused:http://www.vbforums.com/
dangers?? Why would be any danger??
no dangers, could have some errors if your not paying attention. like with redim, remember to preserve