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
ReDim Only
ReDim Preserve And array.resize






ReplyDeleteNice post.I really appreciate your work. These are the helpful information. Thanks for sharing.
Tutoring Service Lucknow | Home Tuition Services
www.croydoncar.co.uk/
ReplyDeleteForex trading for beginners online provides an easy entry point into the global currency market, allowing new traders to learn and trade from anywhere. With user-friendly platforms, educational tutorials, demo accounts, and real-time market data, beginners can understand how currency pairs work and practice strategies without financial risk. Online resources make it possible to study charts, follow market trends, and develop trading skills step-by-step. As knowledge grows, beginners can move confidently to live trading, supported by tools that simplify decision-making. Online forex trading is an accessible and flexible way for newcomers to build a strong foundation in the world of currency trading.
ReplyDeleteContact us Address – 1st Floor, The Sotheby Building, Rodney Bay, Gros-Islet, SAINT Lucia P.O Box 838, Castries, Saint Lucia Phone no – +97144471894 Website – https://winprofx.com/