|
-
Jul 7th, 2002, 08:16 PM
#1
Thread Starter
Junior Member
Arrays in Loops?
What are some potential dangers in using arrays in loops?
-
Jul 7th, 2002, 08:24 PM
#2
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
-
Jul 7th, 2002, 08:25 PM
#3
Frenzied Member
-
Jul 7th, 2002, 08:28 PM
#4
-
Jul 7th, 2002, 08:51 PM
#5
Member
no dangers, could have some errors if your not paying attention. like with redim, remember to preserve
The Programmers Credo -
Protect dumb-ass from himself.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|