New to VB.NET - "Expected end of statement" error -



New to VB.NET - "Expected end of statement" error -

i'm trying create array of integers:

dim amenities() integer amenities=new integer(){1,2,3,4,5}

and i'm getting error:

expected end of statement

dim amenities() integer

-----------------------^

it says error happening on "as", have no thought i'm doing wrong. sense stupid asking, i'm stuck.

amenities variable name. declaration should read:

dim amenities integer()

vb.net

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -