Creating an Array: Difference between revisions

Content added Content deleted
(Logo)
No edit summary
Line 616: Line 616:
100 cells is-array foo
100 cells is-array foo
100 chars is-array bar
100 chars is-array bar

=={{header|Visual Basic .NET}}==

' An empty array of integers.
Dim empty() AS Integer
' An array of integers.
Dim numbers() AS Integer = {1, 2, 3, 4, 5}
' An array of strings
Dim string() AS String = {"String","foo","etc."}

' Split a string into an array
Dim words() AS String = 'perl style'.split(" "c) ' You must tell VB that the space is a character by denoting c after the " "