VB Array of strings definition

I am sure this is obvious I dont know why I cannot work this out.
Numerous sample on the net say an array of string should be defined in VB as follows:

However when I do this:

I get this error:

Are there particular flavours of VB that I should know about?
Found this post to Allow Stringset to create from array which I have not investigated yet that may be a way around regardless it would be good to know how to define an array.

With thanks

VBScript isn't the same as VB; if you're googling make sure you don't end up on pages about VB by mistake.

This page shows how to do it:

Dim students
students = Array("John", "Alice", "Antony", "Gloria", "jayden")
1 Like

Ah Jon thankyou!!!!!!!