VB.Net Initialising an array on the fly

前端 未结 5 1670
悲哀的现实
悲哀的现实 2020-12-20 18:30

I wrote this - very simple - function, and then wondered does VB have some pre-built functionality to do this, but couldn\'t find anything specific.

Private          


        
5条回答
  •  忘掉有多难
    2020-12-20 19:17

    The following codes will work in VB 10:

    Dim someNames = {"Hans", "Luke", "Lia"} 
    

    http://msdn.microsoft.com/en-us/library/ee336123.aspx

提交回复
热议问题