BCA Raipur - BCA Notes S-1

Post your notes and other just by mailing us at bcaraipur@live.com

BCA Raipur - BCA Notes S-2

Post your notes and other just by mailing us at bcaraipur@live.com

BCA Raipur - BCA Notes S-3

Post your notes and other just by mailing us at bcaraipur@live.com

BCA Raipur - BCA Notes S-4

Post your notes and other just by mailing us at bcaraipur@live.com

BCA Raipur - BCA Notes S-5

Post your notes and other just by mailing us at bcaraipur@live.com

google search

Popular Posts


Welcome to BCA Notes

>>>>>>>>>>>>>>>>

Visitors

Search This Blog

Blogger templates

Visitor Map


Sunday 15 October 2017

Saturday 2 January 2016

ReDim preserve ,ReDim, Array.Resize Implementation of the function.



ReDim preserve ,ReDim, Array.Resize Implementation of the function.
Console application vb.net




Module Module1
    Sub Main()
        Dim arr(2) As Integer
        arr(0) = 10
        arr(1) = 20
        arr(2) = 30
        Dim i As Integer
        For i = 0 To arr.Length - 1
            Console.WriteLine(arr(i))
        Next
        Console.WriteLine("Array Length is {0}", arr.Length)
        ' Array.Resize(arr, 6)//comment
        ReDim arr(6)
        'ReDim Preserve arr(6)
        For i = 0 To arr.Length - 1
            Console.WriteLine(arr(i))
        Next
        Console.WriteLine("Array Length is {0}", arr.Length)
        Console.ReadLine()
    End Sub
End Module

http://bcaraipur.blogspot.in/2015/02/program-to-arrange-array-in-descending.html
ReDim Only


http://bcaraipur.blogspot.in/2015/02/program-to-arrange-array-in-descending.html
ReDim Preserve           And                      array.resize