Advertisement
daniel_lev_ari

AuthorNames Arrary

Jan 18th, 2024 (edited)
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VisualBasic 0.48 KB | Source Code | 0 0
  1. Sub InitializeAuthorNames()
  2.     Dim AuthorNames(6) As String
  3.    
  4.     AuthorNames(0) = "Bruce Patton"
  5.     AuthorNames(1) = "Eric Ries"
  6.     AuthorNames(2) = "James Clear"
  7.     AuthorNames(3) = "Kevin Kruse"
  8.     AuthorNames(4) = "Roger Fisher"
  9.     AuthorNames(5) = "Simon Sinek"
  10.     AuthorNames(6) = "William Ury"
  11.  
  12.     ' Example of how to use the array
  13.    Dim i As Integer
  14.     For i = LBound(AuthorNames) To UBound(AuthorNames)
  15.         Debug.Print AuthorNames(i)
  16.     Next i
  17. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement