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

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -