VISUAL BASIC: in 8 Hours, For Beginners, Learn Coding Fast! VB Programming Language Crash Course, A Quick Start Guide Tutorial Book with Hands-On Projects in Easy Steps! An Ultimate Beginner's Guide! by Ray Yao

VISUAL BASIC: in 8 Hours, For Beginners, Learn Coding Fast! VB Programming Language Crash Course, A Quick Start Guide Tutorial Book with Hands-On Projects in Easy Steps! An Ultimate Beginner's Guide! by Ray Yao

Author:Ray Yao
Language: eng
Format: azw3, epub
Publisher: visual basic environment w vb programming in visual basic coding in visual basic vbasic basics of vb vba latest version vb
Published: 2017-01-01T08:00:00+00:00


Count

’returns the number of elements

Example 5.9

Module Module1

Sub Main()

Dim MyList As New List(Of Integer)

MyList.Add(10)

MyList.Add(11)

MyList.Add(12)

MyList.Add(13)

MyList.Add(14) 'now becomes {10,11,12,13,14}

MyList.Insert(3, 100) 'now becomes {10,11,12,100,13,14}

MyList.IndexOf(100) 'returns index 3

MyList.Reverse() 'now becomes {14,13,100,12,11,10}

MyList.Remove(100) 'now becomes {14,13,12,11,10}

Console.Write(MyList.Count) 'now has five elements

Console.ReadLine()

End Sub

End Module



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.