How to use loops and strings


Discuss the below:

Private Sub DisplayData(strArray() As String)

Dim intFriend As Integer
For intFriend = 1 To mintNumFriends
Cells(intFriend + 1, 1).Value = strArray(1)
Cells(intFriend + 1, 2).Value = strArray(5)
Cells(intFriend + 1, 3).Value = strArray(6)
Cells(intFriend + 1, 6).Value = strArray(4)
Cells(intFriend + 1, 5).Value = strArray(3)
Cells(intFriend + 1, 4).Value = strArray(2)
Next intFriend

Q:In a nutshell, what should I place in the () for strArray so that the proper information is placed for each person?

Solution Preview :

Prepared by a verified Expert
Data Structure & Algorithms: How to use loops and strings
Reference No:- TGS01931836

Now Priced at $20 (50% Discount)

Recommended (94%)

Rated (4.6/5)