Using Array Functions

Visual Basic .NET provides the array-related functions listed in Table 6-5.

Table 6-5. Visual Basic .NET Array Functions 

Result Type

Function

Description

Array

Filter

Returns a subset of a String array containing only those elements that contain (or don’t contain) a specified string.

Array

Split

Converts a delimited string into a one-dimensional array, based on the specified delimiter.

Boolean

IsArray

Indicates whether a variable is an array.

Long

Lbound

Returns the smallest available subscript for the indicated dimension of an array. In Visual Basic .NET, this is always zero.

Long

Ubound

Returns the largest available subscript for the indicated dimension of an array.

String

Join ...

Get Faster Smarter Beginning Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.