I’m simply trying to create an array of integers:
Dim amenities() as Integer
amenities=New Integer(){1,2,3,4,5}
And I’m getting this error:
Expected end of statement
Dim amenities() as Integer
———————–^
It says the error is happening on “as”, but I have no idea what I’m doing wrong. I feel stupid asking, but I’m stuck.
Amenities is the variable name. So your declaration should read: