How to define an array of strings in VB?

In VB, you can define a string array using the following syntax:

Create an array of strings with values “string1”, “string2”, and “string3”.

In this case, arr is the name of the defined string array, and String() indicates that the array type is a string array. Inside the braces, list the required string elements one by one, separating them with commas.

bannerAds