skip to main
|
skip to sidebar
Ted's Hello World
Wednesday, January 23, 2008
Initialize an array
This might seem very simple, but for some reason I forgot how to initialize an array in
vb.net
In C++ you would do something like this:
int values[] = {1,2,3}
But I couldn't remember how to do it in
VB.NET
.
Anyways, below is how one would do it:
Dim values() As Integer = {1, 2, 3}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2011
(1)
►
January
(1)
►
2010
(42)
►
November
(4)
►
October
(1)
►
June
(10)
►
May
(2)
►
April
(5)
►
March
(14)
►
February
(5)
►
January
(1)
►
2009
(56)
►
December
(1)
►
November
(4)
►
September
(1)
►
August
(4)
►
July
(2)
►
June
(9)
►
May
(7)
►
April
(5)
►
March
(7)
►
February
(11)
►
January
(5)
▼
2008
(51)
►
December
(7)
►
November
(6)
►
October
(4)
►
September
(4)
►
July
(5)
►
June
(5)
►
May
(5)
►
April
(1)
►
March
(4)
►
February
(8)
▼
January
(2)
CtrlV Shortcut causes a conflict with a Paste Menu...
Initialize an array
►
2007
(16)
►
December
(10)
►
November
(6)
About Me
Ted Unnikumaran
View my complete profile
No comments:
Post a Comment